mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
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
This commit is contained in:
@ -11,7 +11,7 @@ CREATE TABLE stats_import.test(
|
||||
comp stats_import.complex_type,
|
||||
arange int4range,
|
||||
tags text[]
|
||||
);
|
||||
) WITH (autovacuum_enabled = false);
|
||||
-- starting stats
|
||||
SELECT relpages, reltuples, relallvisible
|
||||
FROM pg_class
|
||||
@ -139,7 +139,8 @@ DETAIL: This operation is not supported for views.
|
||||
CREATE TABLE stats_import.part_parent ( i integer ) PARTITION BY RANGE(i);
|
||||
CREATE TABLE stats_import.part_child_1
|
||||
PARTITION OF stats_import.part_parent
|
||||
FOR VALUES FROM (0) TO (10);
|
||||
FOR VALUES FROM (0) TO (10)
|
||||
WITH (autovacuum_enabled = false);
|
||||
ANALYZE stats_import.part_parent;
|
||||
SELECT relpages
|
||||
FROM pg_class
|
||||
|
@ -13,7 +13,7 @@ CREATE TABLE stats_import.test(
|
||||
comp stats_import.complex_type,
|
||||
arange int4range,
|
||||
tags text[]
|
||||
);
|
||||
) WITH (autovacuum_enabled = false);
|
||||
|
||||
-- starting stats
|
||||
SELECT relpages, reltuples, relallvisible
|
||||
@ -99,7 +99,8 @@ SELECT
|
||||
CREATE TABLE stats_import.part_parent ( i integer ) PARTITION BY RANGE(i);
|
||||
CREATE TABLE stats_import.part_child_1
|
||||
PARTITION OF stats_import.part_parent
|
||||
FOR VALUES FROM (0) TO (10);
|
||||
FOR VALUES FROM (0) TO (10)
|
||||
WITH (autovacuum_enabled = false);
|
||||
|
||||
ANALYZE stats_import.part_parent;
|
||||
|
||||
|
Reference in New Issue
Block a user