I am trying to do the following in Postgresql
SELECT * FROM table_one
INNER JOIN table_two ON table_one.id = table_two.table_one_id
WHERE (table_one.some_value > length('((-1,0),(table_two.x,table_two.y))'::lseg))
Obviously this doesn't work so my question is how do you do something like this?
'((-1,0),(%,%))'::lseg , table_two.x , table_two.y
or
'((-1,0),('|| table_two.x ||',('|| table_one.x || '))'::lseg
ERROR: invalid input syntax for type lsegalso the x and y columns are floats