Skip to content

Commit

Permalink
Tests for spansets and temporal types (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanzimanyi authored Aug 22, 2024
1 parent 0d61fff commit 7edcfb5
Show file tree
Hide file tree
Showing 67 changed files with 27,419 additions and 22,859 deletions.
2,355 changes: 2,355 additions & 0 deletions contrib/mobilitydb/expected/02_spanset_binsplit.test.out

Large diffs are not rendered by default.

2,355 changes: 2,355 additions & 0 deletions contrib/mobilitydb/expected/02_spanset_equisplit.test.out

Large diffs are not rendered by default.

2,355 changes: 2,355 additions & 0 deletions contrib/mobilitydb/expected/02_spanset_segsplit.test.out

Large diffs are not rendered by default.

440 changes: 440 additions & 0 deletions contrib/mobilitydb/expected/04_temporal_posops_binsplit.test.out

Large diffs are not rendered by default.

440 changes: 440 additions & 0 deletions contrib/mobilitydb/expected/04_temporal_posops_equisplit.test.out

Large diffs are not rendered by default.

440 changes: 440 additions & 0 deletions contrib/mobilitydb/expected/04_temporal_posops_segsplit.test.out

Large diffs are not rendered by default.

452 changes: 452 additions & 0 deletions contrib/mobilitydb/expected/04_temporal_posops_tilesplit.test.out

Large diffs are not rendered by default.

440 changes: 440 additions & 0 deletions contrib/mobilitydb/expected/04_temporal_topops_binsplit.test.out

Large diffs are not rendered by default.

941 changes: 100 additions & 841 deletions contrib/mobilitydb/expected/04_temporal_topops_equisplit.test.out

Large diffs are not rendered by default.

933 changes: 98 additions & 835 deletions contrib/mobilitydb/expected/04_temporal_topops_segsplit.test.out

Large diffs are not rendered by default.

1,177 changes: 0 additions & 1,177 deletions contrib/mobilitydb/expected/04_temporal_topops_tilesplit.test.out

This file was deleted.

1,802 changes: 0 additions & 1,802 deletions contrib/mobilitydb/expected/05_temporal_posops_equisplit.test.out

This file was deleted.

1,806 changes: 0 additions & 1,806 deletions contrib/mobilitydb/expected/05_temporal_posops_tilesplit.test.out

This file was deleted.

632 changes: 632 additions & 0 deletions contrib/mobilitydb/expected/05_tnumber_posops_equisplit.test.out

Large diffs are not rendered by default.

632 changes: 632 additions & 0 deletions contrib/mobilitydb/expected/05_tnumber_posops_segsplit.test.out

Large diffs are not rendered by default.

632 changes: 632 additions & 0 deletions contrib/mobilitydb/expected/05_tnumber_posops_tilesplit.test.out

Large diffs are not rendered by default.

493 changes: 493 additions & 0 deletions contrib/mobilitydb/expected/05_tnumber_topops_equisplit.test.out

Large diffs are not rendered by default.

491 changes: 491 additions & 0 deletions contrib/mobilitydb/expected/05_tnumber_topops_segsplit.test.out

Large diffs are not rendered by default.

491 changes: 491 additions & 0 deletions contrib/mobilitydb/expected/05_tnumber_topops_tilesplit.test.out

Large diffs are not rendered by default.

244 changes: 2 additions & 242 deletions contrib/mobilitydb/expected/06_tpoint_topops_equisplit.test.out

Large diffs are not rendered by default.

244 changes: 2 additions & 242 deletions contrib/mobilitydb/expected/06_tpoint_topops_segsplit.test.out

Large diffs are not rendered by default.

120 changes: 0 additions & 120 deletions contrib/mobilitydb/expected/06_tpoint_topops_tilesplit.test.out
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,6 @@ INSERT INTO test_topops(op, leftarg, rightarg, no_idx)
SELECT '<@', 'tstzspan', 'tgeompoint', COUNT(*)
FROM tbl_tstzspan, tbl_tgeompoint WHERE t <@ temp;
INSERT INTO test_topops(op, leftarg, rightarg, no_idx)
SELECT '-|-', 'tstzspan', 'tgeompoint', COUNT(*)
FROM tbl_tstzspan, tbl_tgeompoint WHERE t -|- temp;
INSERT INTO test_topops(op, leftarg, rightarg, no_idx)
SELECT '~=', 'tstzspan', 'tgeompoint', COUNT(*)
FROM tbl_tstzspan, tbl_tgeompoint WHERE t ~= temp;
INSERT INTO test_topops(op, leftarg, rightarg, no_idx)
SELECT '&&', 'stbox', 'tgeompoint', COUNT(*)
FROM tbl_stbox, tbl_tgeompoint WHERE b && temp;
INSERT INTO test_topops(op, leftarg, rightarg, no_idx)
Expand All @@ -72,12 +66,6 @@ FROM tbl_stbox, tbl_tgeompoint WHERE b @> temp;
INSERT INTO test_topops(op, leftarg, rightarg, no_idx)
SELECT '<@', 'stbox', 'tgeompoint', COUNT(*)
FROM tbl_stbox, tbl_tgeompoint WHERE b <@ temp;
INSERT INTO test_topops(op, leftarg, rightarg, no_idx)
SELECT '-|-', 'stbox', 'tgeompoint', COUNT(*)
FROM tbl_stbox, tbl_tgeompoint WHERE b -|- temp;
INSERT INTO test_topops(op, leftarg, rightarg, no_idx)
SELECT '~=', 'stbox', 'tgeompoint', COUNT(*)
FROM tbl_stbox, tbl_tgeompoint WHERE b ~= temp;
-------------------------------------------------------------------------------
-- tgeompoint op <type>
INSERT INTO test_topops(op, leftarg, rightarg, no_idx)
Expand All @@ -90,12 +78,6 @@ INSERT INTO test_topops(op, leftarg, rightarg, no_idx)
SELECT '<@', 'tgeompoint', 'tstzspan', COUNT(*)
FROM tbl_tgeompoint, tbl_tstzspan WHERE temp <@ t;
INSERT INTO test_topops(op, leftarg, rightarg, no_idx)
SELECT '-|-', 'tgeompoint', 'tstzspan', COUNT(*)
FROM tbl_tgeompoint, tbl_tstzspan WHERE temp -|- t;
INSERT INTO test_topops(op, leftarg, rightarg, no_idx)
SELECT '~=', 'tgeompoint', 'tstzspan', COUNT(*)
FROM tbl_tgeompoint, tbl_tstzspan WHERE temp ~= t;
INSERT INTO test_topops(op, leftarg, rightarg, no_idx)
SELECT '&&', 'tgeompoint', 'stbox', COUNT(*)
FROM tbl_tgeompoint, tbl_stbox WHERE temp && b;
INSERT INTO test_topops(op, leftarg, rightarg, no_idx)
Expand All @@ -105,12 +87,6 @@ INSERT INTO test_topops(op, leftarg, rightarg, no_idx)
SELECT '<@', 'tgeompoint', 'stbox', COUNT(*)
FROM tbl_tgeompoint, tbl_stbox WHERE temp <@ b;
INSERT INTO test_topops(op, leftarg, rightarg, no_idx)
SELECT '-|-', 'tgeompoint', 'stbox', COUNT(*)
FROM tbl_tgeompoint, tbl_stbox WHERE temp -|- b;
INSERT INTO test_topops(op, leftarg, rightarg, no_idx)
SELECT '~=', 'tgeompoint', 'stbox', COUNT(*)
FROM tbl_tgeompoint, tbl_stbox WHERE temp ~= b;
INSERT INTO test_topops(op, leftarg, rightarg, no_idx)
SELECT '&&', 'tgeompoint', 'tgeompoint', COUNT(*)
FROM tbl_tgeompoint t1, tbl_tgeompoint t2 WHERE t1.temp && t2.temp;
INSERT INTO test_topops(op, leftarg, rightarg, no_idx)
Expand All @@ -119,12 +95,6 @@ FROM tbl_tgeompoint t1, tbl_tgeompoint t2 WHERE t1.temp @> t2.temp;
INSERT INTO test_topops(op, leftarg, rightarg, no_idx)
SELECT '<@', 'tgeompoint', 'tgeompoint', COUNT(*)
FROM tbl_tgeompoint t1, tbl_tgeompoint t2 WHERE t1.temp <@ t2.temp;
INSERT INTO test_topops(op, leftarg, rightarg, no_idx)
SELECT '-|-', 'tgeompoint', 'tgeompoint', COUNT(*)
FROM tbl_tgeompoint t1, tbl_tgeompoint t2 WHERE t1.temp -|- t2.temp;
INSERT INTO test_topops(op, leftarg, rightarg, no_idx)
SELECT '~=', 'tgeompoint', 'tgeompoint', COUNT(*)
FROM tbl_tgeompoint t1, tbl_tgeompoint t2 WHERE t1.temp ~= t2.temp;
-------------------------------------------------------------------------------
-- The tilesplit method is currently not available for tgeogpoint
CREATE INDEX tbl_tgeompoint_mrtree_idx ON tbl_tgeompoint
Expand All @@ -141,12 +111,6 @@ UPDATE test_topops SET mrtree_idx = ( SELECT COUNT(*)
FROM tbl_tstzspan, tbl_tgeompoint WHERE t <@ temp )
WHERE op = '<@' AND leftarg = 'tstzspan' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mrtree_idx = ( SELECT COUNT(*)
FROM tbl_tstzspan, tbl_tgeompoint WHERE t -|- temp )
WHERE op = '-|-' AND leftarg = 'tstzspan' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mrtree_idx = ( SELECT COUNT(*)
FROM tbl_tstzspan, tbl_tgeompoint WHERE t ~= temp )
WHERE op = '~=' AND leftarg = 'tstzspan' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mrtree_idx = ( SELECT COUNT(*)
FROM tbl_stbox, tbl_tgeompoint WHERE b && temp )
WHERE op = '&&' AND leftarg = 'stbox' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mrtree_idx = ( SELECT COUNT(*)
Expand All @@ -155,12 +119,6 @@ WHERE op = '@>' AND leftarg = 'stbox' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mrtree_idx = ( SELECT COUNT(*)
FROM tbl_stbox, tbl_tgeompoint WHERE b <@ temp )
WHERE op = '<@' AND leftarg = 'stbox' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mrtree_idx = ( SELECT COUNT(*)
FROM tbl_stbox, tbl_tgeompoint WHERE b -|- temp )
WHERE op = '-|-' AND leftarg = 'stbox' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mrtree_idx = ( SELECT COUNT(*)
FROM tbl_stbox, tbl_tgeompoint WHERE b ~= temp )
WHERE op = '~=' AND leftarg = 'stbox' AND rightarg = 'tgeompoint';
-------------------------------------------------------------------------------
-- tgeompoint op <type>
UPDATE test_topops SET mrtree_idx = ( SELECT COUNT(*)
Expand All @@ -173,12 +131,6 @@ UPDATE test_topops SET mrtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint, tbl_tstzspan WHERE temp <@ t )
WHERE op = '<@' AND leftarg = 'tgeompoint' AND rightarg = 'tstzspan';
UPDATE test_topops SET mrtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint, tbl_tstzspan WHERE temp -|- t )
WHERE op = '-|-' AND leftarg = 'tgeompoint' AND rightarg = 'tstzspan';
UPDATE test_topops SET mrtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint, tbl_tstzspan WHERE temp ~= t )
WHERE op = '~=' AND leftarg = 'tgeompoint' AND rightarg = 'tstzspan';
UPDATE test_topops SET mrtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint, tbl_stbox WHERE temp && b )
WHERE op = '&&' AND leftarg = 'tgeompoint' AND rightarg = 'stbox';
UPDATE test_topops SET mrtree_idx = ( SELECT COUNT(*)
Expand All @@ -188,12 +140,6 @@ UPDATE test_topops SET mrtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint, tbl_stbox WHERE temp <@ b )
WHERE op = '<@' AND leftarg = 'tgeompoint' AND rightarg = 'stbox';
UPDATE test_topops SET mrtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint, tbl_stbox WHERE temp -|- b )
WHERE op = '-|-' AND leftarg = 'tgeompoint' AND rightarg = 'stbox';
UPDATE test_topops SET mrtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint, tbl_stbox WHERE temp ~= b )
WHERE op = '~=' AND leftarg = 'tgeompoint' AND rightarg = 'stbox';
UPDATE test_topops SET mrtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint t1, tbl_tgeompoint t2 WHERE t1.temp && t2.temp )
WHERE op = '&&' AND leftarg = 'tgeompoint' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mrtree_idx = ( SELECT COUNT(*)
Expand All @@ -202,12 +148,6 @@ WHERE op = '@>' AND leftarg = 'tgeompoint' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mrtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint t1, tbl_tgeompoint t2 WHERE t1.temp <@ t2.temp )
WHERE op = '<@' AND leftarg = 'tgeompoint' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mrtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint t1, tbl_tgeompoint t2 WHERE t1.temp -|- t2.temp )
WHERE op = '-|-' AND leftarg = 'tgeompoint' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mrtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint t1, tbl_tgeompoint t2 WHERE t1.temp ~= t2.temp )
WHERE op = '~=' AND leftarg = 'tgeompoint' AND rightarg = 'tgeompoint';
-------------------------------------------------------------------------------
DROP INDEX tbl_tgeompoint_mrtree_idx;
-------------------------------------------------------------------------------
Expand All @@ -226,12 +166,6 @@ UPDATE test_topops SET mquadtree_idx = ( SELECT COUNT(*)
FROM tbl_tstzspan, tbl_tgeompoint WHERE t <@ temp )
WHERE op = '<@' AND leftarg = 'tstzspan' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mquadtree_idx = ( SELECT COUNT(*)
FROM tbl_tstzspan, tbl_tgeompoint WHERE t -|- temp )
WHERE op = '-|-' AND leftarg = 'tstzspan' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mquadtree_idx = ( SELECT COUNT(*)
FROM tbl_tstzspan, tbl_tgeompoint WHERE t ~= temp )
WHERE op = '~=' AND leftarg = 'tstzspan' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mquadtree_idx = ( SELECT COUNT(*)
FROM tbl_stbox, tbl_tgeompoint WHERE b && temp )
WHERE op = '&&' AND leftarg = 'stbox' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mquadtree_idx = ( SELECT COUNT(*)
Expand All @@ -240,12 +174,6 @@ WHERE op = '@>' AND leftarg = 'stbox' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mquadtree_idx = ( SELECT COUNT(*)
FROM tbl_stbox, tbl_tgeompoint WHERE b <@ temp )
WHERE op = '<@' AND leftarg = 'stbox' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mquadtree_idx = ( SELECT COUNT(*)
FROM tbl_stbox, tbl_tgeompoint WHERE b -|- temp )
WHERE op = '-|-' AND leftarg = 'stbox' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mquadtree_idx = ( SELECT COUNT(*)
FROM tbl_stbox, tbl_tgeompoint WHERE b ~= temp )
WHERE op = '~=' AND leftarg = 'stbox' AND rightarg = 'tgeompoint';
-------------------------------------------------------------------------------
-- tgeompoint op <type>
UPDATE test_topops SET mquadtree_idx = ( SELECT COUNT(*)
Expand All @@ -258,12 +186,6 @@ UPDATE test_topops SET mquadtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint, tbl_tstzspan WHERE temp <@ t )
WHERE op = '<@' AND leftarg = 'tgeompoint' AND rightarg = 'tstzspan';
UPDATE test_topops SET mquadtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint, tbl_tstzspan WHERE temp -|- t )
WHERE op = '-|-' AND leftarg = 'tgeompoint' AND rightarg = 'tstzspan';
UPDATE test_topops SET mquadtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint, tbl_tstzspan WHERE temp ~= t )
WHERE op = '~=' AND leftarg = 'tgeompoint' AND rightarg = 'tstzspan';
UPDATE test_topops SET mquadtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint, tbl_stbox WHERE temp && b )
WHERE op = '&&' AND leftarg = 'tgeompoint' AND rightarg = 'stbox';
UPDATE test_topops SET mquadtree_idx = ( SELECT COUNT(*)
Expand All @@ -273,12 +195,6 @@ UPDATE test_topops SET mquadtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint, tbl_stbox WHERE temp <@ b )
WHERE op = '<@' AND leftarg = 'tgeompoint' AND rightarg = 'stbox';
UPDATE test_topops SET mquadtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint, tbl_stbox WHERE temp -|- b )
WHERE op = '-|-' AND leftarg = 'tgeompoint' AND rightarg = 'stbox';
UPDATE test_topops SET mquadtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint, tbl_stbox WHERE temp ~= b )
WHERE op = '~=' AND leftarg = 'tgeompoint' AND rightarg = 'stbox';
UPDATE test_topops SET mquadtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint t1, tbl_tgeompoint t2 WHERE t1.temp && t2.temp )
WHERE op = '&&' AND leftarg = 'tgeompoint' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mquadtree_idx = ( SELECT COUNT(*)
Expand All @@ -287,12 +203,6 @@ WHERE op = '@>' AND leftarg = 'tgeompoint' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mquadtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint t1, tbl_tgeompoint t2 WHERE t1.temp <@ t2.temp )
WHERE op = '<@' AND leftarg = 'tgeompoint' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mquadtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint t1, tbl_tgeompoint t2 WHERE t1.temp -|- t2.temp )
WHERE op = '-|-' AND leftarg = 'tgeompoint' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mquadtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint t1, tbl_tgeompoint t2 WHERE t1.temp ~= t2.temp )
WHERE op = '~=' AND leftarg = 'tgeompoint' AND rightarg = 'tgeompoint';
-------------------------------------------------------------------------------
DROP INDEX tbl_tgeompoint_mquadtree_idx;
-------------------------------------------------------------------------------
Expand All @@ -311,12 +221,6 @@ UPDATE test_topops SET mkdtree_idx = ( SELECT COUNT(*)
FROM tbl_tstzspan, tbl_tgeompoint WHERE t <@ temp )
WHERE op = '<@' AND leftarg = 'tstzspan' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mkdtree_idx = ( SELECT COUNT(*)
FROM tbl_tstzspan, tbl_tgeompoint WHERE t -|- temp )
WHERE op = '-|-' AND leftarg = 'tstzspan' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mkdtree_idx = ( SELECT COUNT(*)
FROM tbl_tstzspan, tbl_tgeompoint WHERE t ~= temp )
WHERE op = '~=' AND leftarg = 'tstzspan' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mkdtree_idx = ( SELECT COUNT(*)
FROM tbl_stbox, tbl_tgeompoint WHERE b && temp )
WHERE op = '&&' AND leftarg = 'stbox' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mkdtree_idx = ( SELECT COUNT(*)
Expand All @@ -325,12 +229,6 @@ WHERE op = '@>' AND leftarg = 'stbox' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mkdtree_idx = ( SELECT COUNT(*)
FROM tbl_stbox, tbl_tgeompoint WHERE b <@ temp )
WHERE op = '<@' AND leftarg = 'stbox' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mkdtree_idx = ( SELECT COUNT(*)
FROM tbl_stbox, tbl_tgeompoint WHERE b -|- temp )
WHERE op = '-|-' AND leftarg = 'stbox' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mkdtree_idx = ( SELECT COUNT(*)
FROM tbl_stbox, tbl_tgeompoint WHERE b ~= temp )
WHERE op = '~=' AND leftarg = 'stbox' AND rightarg = 'tgeompoint';
-------------------------------------------------------------------------------
-- tgeompoint op <type>
UPDATE test_topops SET mkdtree_idx = ( SELECT COUNT(*)
Expand All @@ -343,12 +241,6 @@ UPDATE test_topops SET mkdtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint, tbl_tstzspan WHERE temp <@ t )
WHERE op = '<@' AND leftarg = 'tgeompoint' AND rightarg = 'tstzspan';
UPDATE test_topops SET mkdtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint, tbl_tstzspan WHERE temp -|- t )
WHERE op = '-|-' AND leftarg = 'tgeompoint' AND rightarg = 'tstzspan';
UPDATE test_topops SET mkdtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint, tbl_tstzspan WHERE temp ~= t )
WHERE op = '~=' AND leftarg = 'tgeompoint' AND rightarg = 'tstzspan';
UPDATE test_topops SET mkdtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint, tbl_stbox WHERE temp && b )
WHERE op = '&&' AND leftarg = 'tgeompoint' AND rightarg = 'stbox';
UPDATE test_topops SET mkdtree_idx = ( SELECT COUNT(*)
Expand All @@ -358,12 +250,6 @@ UPDATE test_topops SET mkdtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint, tbl_stbox WHERE temp <@ b )
WHERE op = '<@' AND leftarg = 'tgeompoint' AND rightarg = 'stbox';
UPDATE test_topops SET mkdtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint, tbl_stbox WHERE temp -|- b )
WHERE op = '-|-' AND leftarg = 'tgeompoint' AND rightarg = 'stbox';
UPDATE test_topops SET mkdtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint, tbl_stbox WHERE temp ~= b )
WHERE op = '~=' AND leftarg = 'tgeompoint' AND rightarg = 'stbox';
UPDATE test_topops SET mkdtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint t1, tbl_tgeompoint t2 WHERE t1.temp && t2.temp )
WHERE op = '&&' AND leftarg = 'tgeompoint' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mkdtree_idx = ( SELECT COUNT(*)
Expand All @@ -372,12 +258,6 @@ WHERE op = '@>' AND leftarg = 'tgeompoint' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mkdtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint t1, tbl_tgeompoint t2 WHERE t1.temp <@ t2.temp )
WHERE op = '<@' AND leftarg = 'tgeompoint' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mkdtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint t1, tbl_tgeompoint t2 WHERE t1.temp -|- t2.temp )
WHERE op = '-|-' AND leftarg = 'tgeompoint' AND rightarg = 'tgeompoint';
UPDATE test_topops SET mkdtree_idx = ( SELECT COUNT(*)
FROM tbl_tgeompoint t1, tbl_tgeompoint t2 WHERE t1.temp ~= t2.temp )
WHERE op = '~=' AND leftarg = 'tgeompoint' AND rightarg = 'tgeompoint';
-------------------------------------------------------------------------------
DROP INDEX tbl_tgeompoint_mkdtree_idx;
-------------------------------------------------------------------------------
Expand Down
Loading

0 comments on commit 7edcfb5

Please sign in to comment.