aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2022-01-20 22:11:48 +1300
committerThomas Munro <tmunro@postgresql.org>2022-01-20 23:33:19 +1300
commitdbe4ca6f418a14c5750464a3fff9a9aea266aa13 (patch)
tree8e3200d2fd9c3b8c3c203d239ca0ad654ec0d023
parente58345f5d11075fb4fbec894786f61293a4ce738 (diff)
downloadpostgresql-dbe4ca6f418a14c5750464a3fff9a9aea266aa13.tar.gz
postgresql-dbe4ca6f418a14c5750464a3fff9a9aea266aa13.zip
Try to stabilize reloptions test, again.
Since the test requires reproducible behavior from VACUUM, and since DISABLE_PAGE_SKIPPING doesn't actually disable all forms of page skipping, let's use a temporary table to avoid contention. Back-patch to 12, like commit 3414099c. Discussion: https://postgr.es/m/20220120052404.sonrhq3f3qgplpzj%40alap3.anarazel.de
-rw-r--r--src/test/regress/expected/reloptions.out2
-rw-r--r--src/test/regress/sql/reloptions.sql2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/regress/expected/reloptions.out b/src/test/regress/expected/reloptions.out
index a861d167fe9..cb04fb706e5 100644
--- a/src/test/regress/expected/reloptions.out
+++ b/src/test/regress/expected/reloptions.out
@@ -89,7 +89,7 @@ ALTER TABLE reloptions_test RESET (fillfactor=12);
ERROR: RESET must not include values for parameters
-- Test vacuum_truncate option
DROP TABLE reloptions_test;
-CREATE TABLE reloptions_test(i INT NOT NULL, j text)
+CREATE TEMP TABLE reloptions_test(i INT NOT NULL, j text)
WITH (vacuum_truncate=false,
toast.vacuum_truncate=false,
autovacuum_enabled=false);
diff --git a/src/test/regress/sql/reloptions.sql b/src/test/regress/sql/reloptions.sql
index cf7a8a3509e..4252b0202f4 100644
--- a/src/test/regress/sql/reloptions.sql
+++ b/src/test/regress/sql/reloptions.sql
@@ -55,7 +55,7 @@ ALTER TABLE reloptions_test RESET (fillfactor=12);
-- Test vacuum_truncate option
DROP TABLE reloptions_test;
-CREATE TABLE reloptions_test(i INT NOT NULL, j text)
+CREATE TEMP TABLE reloptions_test(i INT NOT NULL, j text)
WITH (vacuum_truncate=false,
toast.vacuum_truncate=false,
autovacuum_enabled=false);