Skip to content

Commit b700f96

Browse files
committed
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 3414099. Discussion: https://postgr.es/m/20220120052404.sonrhq3f3qgplpzj%40alap3.anarazel.de
1 parent b99ccd2 commit b700f96

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/regress/expected/reloptions.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ ALTER TABLE reloptions_test RESET (fillfactor=12);
8989
ERROR: RESET must not include values for parameters
9090
-- Test vacuum_truncate option
9191
DROP TABLE reloptions_test;
92-
CREATE TABLE reloptions_test(i INT NOT NULL, j text)
92+
CREATE TEMP TABLE reloptions_test(i INT NOT NULL, j text)
9393
WITH (vacuum_truncate=false,
9494
toast.vacuum_truncate=false,
9595
autovacuum_enabled=false);

src/test/regress/sql/reloptions.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ ALTER TABLE reloptions_test RESET (fillfactor=12);
5555
-- Test vacuum_truncate option
5656
DROP TABLE reloptions_test;
5757

58-
CREATE TABLE reloptions_test(i INT NOT NULL, j text)
58+
CREATE TEMP TABLE reloptions_test(i INT NOT NULL, j text)
5959
WITH (vacuum_truncate=false,
6060
toast.vacuum_truncate=false,
6161
autovacuum_enabled=false);

0 commit comments

Comments
 (0)