I know there is a function called pgr_dijkstra and it gets the polylines and the distance etc.. I figured out before 2 days maybe so I have a network it has usual things of