My database has beginning and end points [beginning(x,y) ending(x,y)]. I want to create lines from this database for each beginning-end points.
I tried ST_MAKELINE
but this function wants location as text as said in this answer. I don't want to enter the points one by one.
How can I pull points from database?
ST_MakeLine
requires 2 geometries, which could be constructed from text (as in the linked question) or simply be consumed from existing column(s)