Open def- opened 2 years ago
Can not reproduce
yugabyte=# WITH v(i,g) AS ( VALUES
yugabyte(# (1,'POINT(0 0)'::geometry),
yugabyte(# (2,'POINTZ(0 0 1)'),
yugabyte(# (3,'POINTZ(0 0 0)'),
yugabyte(# (4,'POINTM(0 0 1)'),
yugabyte(# (5,'POINTZM(0 0 0 1)'),
yugabyte(# (6,'POINTZM(0 0 1 0)'),
yugabyte(# (7,'LINESTRINGM(-1 0 2,1 0 3)'),
yugabyte(# (8,'LINESTRINGZ(-1 0 2,1 0 3)'),
yugabyte(# (9,'LINESTRINGZM(-1 0 2 2,1 0 3 3)')
yugabyte(# )
yugabyte-# SELECT 'ndovm', v1.i, array_agg(v2.i) FROM v v1, v v2 WHERE v1.g &&& v2.g
yugabyte-# group by v1.i
yugabyte-# ORDER BY 2;
?column? | i | array_agg
----------+---+---------------------
ndovm | 1 | {1,2,3,4,5,6,7,8,9}
ndovm | 2 | {1,2,4,6,7}
ndovm | 3 | {1,3,4,5,7}
ndovm | 4 | {1,2,3,4,5,8}
ndovm | 5 | {1,3,4,5}
ndovm | 6 | {1,2,6}
ndovm | 7 | {1,2,3,7,8,9}
ndovm | 8 | {1,4,7,8,9}
ndovm | 9 | {1,7,8,9}
(9 rows)
also see https://github.com/yugabyte/yugabyte-db/issues/11318#issuecomment-1040875605
See my comment for full instructions: https://github.com/yugabyte/yugabyte-db/issues/11318#issuecomment-1042798619 Can still reproduce with:
$ PATH=$PWD/bin:/usr/pgsql-11/bin:$PATH POSTGIS_SCRIPTDIR=/usr/pgsql-11/share/contrib/postgis-3.1 ./run_test.pl core/operators.sql
Jira Link: DB-1220
Description
See https://docs.yugabyte.com/latest/api/ysql/extensions/#postgis for PostGIS installation instructions.
Can be reproduced against yugabyte-2.11.2.0 on CentOS using https://github.com/def-/postgis/tree/stable-3.1/regress by running
PATH=$CWD/bin/:$PATH ./run_test.pl core/operators.sql
tserver log:
backtrace from gdb:
Same failure with core/regress_gist_index_nd.sql, core/regress_selectivity.sql, core/estimatedextent.sql, core/regress_spgist_index_2d.sql, core/regress_spgist_index_3d.sql, core/regress_spgist_index_nd.sql. Coredump: core.5184.zip