summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Vondra2017-01-22 16:35:34 +0000
committerTomas Vondra2017-01-22 16:35:34 +0000
commit12186b1069eb2d1699f8f8e353819c88e8429c10 (patch)
tree35e824933ddc4e31762a9100a38a26a77763632f
parent591077814e9276475cfcf47dc4e1785a35bb9ba5 (diff)
resolve failures in 'gist' test suite by making them deterministic
As described in e39c4afcfa, the results were platform dependent.
-rw-r--r--src/test/regress/expected/gist.out8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/regress/expected/gist.out b/src/test/regress/expected/gist.out
index 7574ec9fe0..ca6adb869c 100644
--- a/src/test/regress/expected/gist.out
+++ b/src/test/regress/expected/gist.out
@@ -63,13 +63,13 @@ select p from gist_tbl where p <@ box(point(0,0), point(0.5, 0.5));
-- Also test an index-only knn-search
explain (costs off)
select p from gist_tbl where p <@ box(point(0,0), point(0.5, 0.5))
-order by p <-> point(0.2, 0.2);
+order by p <-> point(0.201, 0.201);
QUERY PLAN
--------------------------------------------------------------
Remote Subquery Scan on all (datanode_1,datanode_2)
-> Index Only Scan using gist_tbl_point_index on gist_tbl
Index Cond: (p <@ '(0.5,0.5),(0,0)'::box)
- Order By: (p <-> '(0.2,0.2)'::point)
+ Order By: (p <-> '(0.201,0.201)'::point)
(4 rows)
select p from gist_tbl where p <@ box(point(0,0), point(0.5, 0.5))
@@ -92,13 +92,13 @@ order by p <-> point(0.201, 0.201);
-- Check commuted case as well
explain (costs off)
select p from gist_tbl where p <@ box(point(0,0), point(0.5, 0.5))
-order by point(0.1, 0.1) <-> p;
+order by point(0.101, 0.101) <-> p;
QUERY PLAN
--------------------------------------------------------------
Remote Subquery Scan on all (datanode_1,datanode_2)
-> Index Only Scan using gist_tbl_point_index on gist_tbl
Index Cond: (p <@ '(0.5,0.5),(0,0)'::box)
- Order By: (p <-> '(0.1,0.1)'::point)
+ Order By: (p <-> '(0.101,0.101)'::point)
(4 rows)
select p from gist_tbl where p <@ box(point(0,0), point(0.5, 0.5))