Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 779972e

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

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
comp stats_import.complex_type,
1414
arange int4range,
1515
tags text[]
16-
);
16+
) WITH (autovacuum_enabled = false);
1717

1818
-- starting stats
1919
SELECT relpages, reltuples, relallvisible
@@ -99,7 +99,8 @@ SELECT
9999
CREATE TABLE stats_import.part_parent ( i integer ) PARTITION BY RANGE(i);
100100
CREATE TABLE stats_import.part_child_1
101101
PARTITION OF stats_import.part_parent
102-
FOR VALUES FROM (0) TO (10);
102+
FOR VALUES FROM (0) TO (10)
103+
WITH (autovacuum_enabled = false);
103104

104105
ANALYZE stats_import.part_parent;
105106

0 commit comments

Comments
 (0)