I have a table "locations" with "from" and "to" columns with "point" type. I'm only able to use "gist" indexes on those columns as the b-tree is not available for "point" type.
I would like to have a unique index on both of the columns (to ensure there is no same location stored).
This is not possible due to error "access method "gist" does not support unique indexes".
Is it somehow possible to achieve this? I could workaround it by creating regular text column storing "from_lat,from_lng:to_lat,to_lng" and add unique index on it, but is there a better way?
fromandtovalues?