Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2016-05-13 00:04:12 +0000
committerTom Lane2016-05-13 00:04:38 +0000
commitd94977ef1cef8810a6a7692a1debd56b7811b2aa (patch)
treeba3adcd0e540504cadf38ca76a3c3022006f9edc /contrib/btree_gist/sql
parentcca2a278609e9ed9bedc4796ae1427fbfb88a2fc (diff)
Ensure plan stability in contrib/btree_gist regression test.
Buildfarm member skink failed with symptoms suggesting that an auto-analyze had happened and changed the plan displayed for a test query. Although this is evidently of low probability, regression tests that sometimes fail are no fun, so add commands to force a bitmap scan to be chosen.
Diffstat (limited to 'contrib/btree_gist/sql')
-rw-r--r--contrib/btree_gist/sql/not_equal.sql4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/btree_gist/sql/not_equal.sql b/contrib/btree_gist/sql/not_equal.sql
index b1940ef4fe7..6dfac5d0aae 100644
--- a/contrib/btree_gist/sql/not_equal.sql
+++ b/contrib/btree_gist/sql/not_equal.sql
@@ -14,10 +14,14 @@ INSERT INTO test_ne VALUES('2007-02-03', -91.3);
INSERT INTO test_ne VALUES('2011-09-01', 43.7);
INSERT INTO test_ne SELECT '2009-01-01', 10.7 FROM generate_series(1,1000);
+SET enable_indexscan to false;
+
EXPLAIN (COSTS OFF) SELECT * FROM test_ne WHERE a <> '2009-01-01' AND b <> 10.7;
SELECT * FROM test_ne WHERE a <> '2009-01-01' AND b <> 10.7;
+RESET enable_indexscan;
+
-- test search for "not equals" using an exclusion constraint
CREATE TABLE zoo (