Is it possible to return the vertex closer to another? Being that one of the observed geometries is a linestring. As in the figure below:
I want to return the single vertex of the linestring (which is represented by the black dots) that is closest to the red dot (which does not belong to the linestring but is on it). Is there any function in postgis for this?