Prevent index-only scans in stats regression test.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 9 Oct 2011 03:45:58 +0000 (23:45 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 9 Oct 2011 03:45:58 +0000 (23:45 -0400)
This bollixes the test because it's expecting to see the idx_tup_fetch
counter increase, which won't happen if heap fetches were avoided by use
of an index-only scan.  Per buildfarm results.

While at it, let's just make sure that enable_seqscan and enable_indexscan
are ON for this test ...

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

index 00811e2145f4304e76cf70256b2c3c8de6990523..56bace1187bc01c92faab454cb1742203a89dff1 100644 (file)
@@ -11,6 +11,11 @@ SHOW track_counts;  -- must be on
  on
 (1 row)
 
+-- ensure that both seqscan and indexscan plans are allowed
+SET enable_seqscan TO on;
+SET enable_indexscan TO on;
+-- for the moment, we don't want index-only scans here
+SET enable_indexonlyscan TO off;
 -- wait to let any prior tests finish dumping out stats;
 -- else our messages might get lost due to contention
 SELECT pg_sleep(2.0);
index 4a72a949f29873a4c8c7becffcff8dd9438069c1..bb349b2dfa63e81c8f2feef4f630fcc9424254fe 100644 (file)
@@ -8,6 +8,12 @@
 -- conditio sine qua non
 SHOW track_counts;  -- must be on
 
+-- ensure that both seqscan and indexscan plans are allowed
+SET enable_seqscan TO on;
+SET enable_indexscan TO on;
+-- for the moment, we don't want index-only scans here
+SET enable_indexonlyscan TO off;
+
 -- wait to let any prior tests finish dumping out stats;
 -- else our messages might get lost due to contention
 SELECT pg_sleep(2.0);