Disable autovacuum for tables in stats import tests.
authorJeff Davis <[email protected]>
Fri, 18 Oct 2024 17:57:46 +0000 (10:57 -0700)
committerJeff Davis <[email protected]>
Fri, 18 Oct 2024 17:57:46 +0000 (10:57 -0700)
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

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

index 495e9b034856ad0e558f06db7fea50e16579adc6..a4e3a0f3c48eda276ede9825f9ba664fb029a47d 100644 (file)
@@ -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
index 108b0c4558665d6416c216c1f9d1b135b26828a2..126b3ab9b9c0dd929b35e4ac3d87054558a4e08e 100644 (file)
@@ -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;