1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-01 01:04:50 +03:00

Prevent index-only scans in stats regression test.

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 ...
This commit is contained in:
Tom Lane 2011-10-08 23:45:58 -04:00
parent c78d8cd146
commit 45401c1c25
2 changed files with 11 additions and 0 deletions

View File

@ -11,6 +11,11 @@ SHOW track_counts; -- must be on
on on
(1 row) (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; -- wait to let any prior tests finish dumping out stats;
-- else our messages might get lost due to contention -- else our messages might get lost due to contention
SELECT pg_sleep(2.0); SELECT pg_sleep(2.0);

View File

@ -8,6 +8,12 @@
-- conditio sine qua non -- conditio sine qua non
SHOW track_counts; -- must be on 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; -- wait to let any prior tests finish dumping out stats;
-- else our messages might get lost due to contention -- else our messages might get lost due to contention
SELECT pg_sleep(2.0); SELECT pg_sleep(2.0);