I tried to solve a problem I had in QGIS (see Simplifying multiple lines to create central axis?).
I just need to know how the correct syntax works to use the function ST_ApproximateMedialAxis(geometry geom)
I successfully added the geometry to the pgAdmin4 Geometry Viewer with the query
select geom
from public.bufferrail
so that seems to be correct.
But how to include this geometry as argument to the function?
SELECT ST_ApproximateMedialAxis (select geom from public.bufferrail);
does not work. I tried several variations, with no success.