From: Tomas Vondra Date: Sun, 22 Jan 2017 16:35:34 +0000 (+0100) Subject: resolve failures in 'gist' test suite by making them deterministic X-Git-Tag: XL_10_R1BETA1~421 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=12186b1069eb2d1699f8f8e353819c88e8429c10;p=postgres-xl.git resolve failures in 'gist' test suite by making them deterministic As described in e39c4afcfa, the results were platform dependent. --- 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))