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

Commit779972e

Browse files
committed
Disable autovacuum for tables in stats import tests.
While we haven't observed any test instability, it seems like a goodidea to disable autovacuum during the stats import tests.Author: Corey HuinkerDiscussion:https://postgr.es/m/CADkLM=fajh1Lpcyr_XsMmq-9Z=SGk-u+_Zeac7Pt0RAN3uiVCg@mail.gmail.com
1 parentb391d88 commit779972e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

‎src/test/regress/expected/stats_import.out

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ CREATE TABLE stats_import.test(
1111
comp stats_import.complex_type,
1212
arange int4range,
1313
tags text[]
14-
);
14+
) WITH (autovacuum_enabled = false);
1515
-- starting stats
1616
SELECT relpages, reltuples, relallvisible
1717
FROM pg_class
@@ -139,7 +139,8 @@ DETAIL: This operation is not supported for views.
139139
CREATE TABLE stats_import.part_parent ( i integer ) PARTITION BY RANGE(i);
140140
CREATE TABLE stats_import.part_child_1
141141
PARTITION OF stats_import.part_parent
142-
FOR VALUES FROM (0) TO (10);
142+
FOR VALUES FROM (0) TO (10)
143+
WITH (autovacuum_enabled = false);
143144
ANALYZE stats_import.part_parent;
144145
SELECT relpages
145146
FROM pg_class

‎src/test/regress/sql/stats_import.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ CREATE TABLE stats_import.test(
1313
compstats_import.complex_type,
1414
arange int4range,
1515
tagstext[]
16-
);
16+
) WITH (autovacuum_enabled= false);
1717

1818
-- starting stats
1919
SELECT relpages, reltuples, relallvisible
@@ -99,7 +99,8 @@ SELECT
9999
CREATETABLEstats_import.part_parent ( iinteger ) PARTITION BY RANGE(i);
100100
CREATETABLEstats_import.part_child_1
101101
PARTITION OFstats_import.part_parent
102-
FORVALUESFROM (0) TO (10);
102+
FORVALUESFROM (0) TO (10)
103+
WITH (autovacuum_enabled= false);
103104

104105
ANALYZEstats_import.part_parent;
105106

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp