If I have one linestring and coordinates of two points on that linestring, what is the easiest way to calculate not shortest distance from those two points, but distance over the given road (given linestring) in PostGIS?
So in the given example given linestrin is whole line and I want to calculate length of red line between points A and B. Any help with this?