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
comp stats_import.complex_type,
arange int4range,
tags text[]
-);
+) WITH (autovacuum_enabled = false);
-- starting stats
SELECT relpages, reltuples, relallvisible
FROM pg_class
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
comp stats_import.complex_type,
arange int4range,
tags text[]
-);
+) WITH (autovacuum_enabled = false);
-- starting stats
SELECT relpages, reltuples, relallvisible
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;