Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit45401c1

Browse files
committed
Prevent index-only scans in stats regression test.
This bollixes the test because it's expecting to see the idx_tup_fetchcounter increase, which won't happen if heap fetches were avoided by useof an index-only scan. Per buildfarm results.While at it, let's just make sure that enable_seqscan and enable_indexscanare ON for this test ...
1 parentc78d8cd commit45401c1

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 TOon;
13+
SET enable_indexscan TOon;
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)

[8]ページ先頭

©2009-2025 Movatter.jp