Re: [postgis-users] Exclusion constraint with custom operator not working as expected

2021-06-23 Thread Komяpa
Hello, The reason why constraint is not working is that GIST scan using your operator does not return what you expect. Deeper debugging needed on your side to fix that select to return the rows you need. 12:23:37 [kom] > explain select * from test_1 where g |*| 'LINESTRING(10 10,50 50)'; ┌──

Exclusion constraint with custom operator not working as expected

2021-06-22 Thread Rhys A.D. Stewart
Greetings All, Firstly, apologies for cross posting. I would like to create a table which will contain postGIS geometries, specifically linestrings. Each line string should be unique, unique in the sense that no linestring should st_equals any other. (see https://postgis.net/docs/manual-3.1/ST_Eq