Skip to content

Commit 45401c1

Browse files
committed
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 ...
1 parent c78d8cd commit 45401c1

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/test/regress/expected/stats.out

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ SHOW track_counts; -- must be on
1111
on
1212
(1 row)
1313

14+
-- ensure that both seqscan and indexscan plans are allowed
15+
SET enable_seqscan TO on;
16+
SET enable_indexscan TO on;
17+
-- for the moment, we don't want index-only scans here
18+
SET enable_indexonlyscan TO off;
1419
-- wait to let any prior tests finish dumping out stats;
1520
-- else our messages might get lost due to contention
1621
SELECT pg_sleep(2.0);

src/test/regress/sql/stats.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
-- conditio sine qua non
99
SHOW track_counts; -- must be on
1010

11+
-- ensure that both seqscan and indexscan plans are allowed
12+
SET enable_seqscan TO on;
13+
SET enable_indexscan TO on;
14+
-- for the moment, we don't want index-only scans here
15+
SET enable_indexonlyscan TO off;
16+
1117
-- wait to let any prior tests finish dumping out stats;
1218
-- else our messages might get lost due to contention
1319
SELECT pg_sleep(2.0);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy