Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Reset the proper GUC in create_index test.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 18 Jan 2017 21:33:18 +0000 (16:33 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 18 Jan 2017 21:34:00 +0000 (16:34 -0500)
Thinko in commit a4523c5aa.  It doesn't really affect anything at
present, but it would be a problem if any tests added later in this
file ought to get index-only-scan plans.  Back-patch, like the previous
commit, just to avoid surprises in case we add such a test and then
back-patch it.

Nikita Glukhov

Discussion: https://postgr.es/m/8b70135d-ad38-bdd8-ac92-71e2b3c273cf@postgrespro.ru

src/test/regress/expected/create_index.out
src/test/regress/sql/create_index.sql

index f1bf7a71a070db6e805e3ad72db3f88ce81ac8cd..b7435fb856d2f94e5b319d0762b9c3aa3dea635b 100644 (file)
@@ -2762,7 +2762,7 @@ ORDER BY thousand;
         1 |     1001
 (2 rows)
 
-RESET enable_indexscan;
+RESET enable_indexonlyscan;
 --
 -- Check elimination of constant-NULL subexpressions
 --
index 8ae1fe580f6f93dc51434f6aa27f0a28154b8232..6b69773faa0ba51170085d0b0740f656db7db177 100644 (file)
@@ -927,7 +927,7 @@ SELECT thousand, tenthous FROM tenk1
 WHERE thousand < 2 AND tenthous IN (1001,3000)
 ORDER BY thousand;
 
-RESET enable_indexscan;
+RESET enable_indexonlyscan;
 
 --
 -- Check elimination of constant-NULL subexpressions