Skip to content

Commit 3414099

Browse files
committed
Try to stabilize the reloptions test.
Where we test vacuum_truncate's effects, sometimes this is failing to truncate as expected on the build farm. That could be explained by page skipping, so disable it explicitly, with the theory that commit fe246d1 didn't go far enough. Back-patch to 12, where the vacuum_truncate tests were added. Discussion: https://postgr.es/m/CA%2BhUKGLT2UL5_JhmBzUgkdyKfc%3D5J-gJSQJLysMs4rqLUKLAzw%40mail.gmail.com
1 parent dda42ff commit 3414099

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/test/regress/expected/reloptions.out

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ INSERT INTO reloptions_test VALUES (1, NULL), (NULL, NULL);
103103
ERROR: null value in column "i" of relation "reloptions_test" violates not-null constraint
104104
DETAIL: Failing row contains (null, null).
105105
-- Do an aggressive vacuum to prevent page-skipping.
106-
VACUUM FREEZE reloptions_test;
106+
VACUUM (FREEZE, DISABLE_PAGE_SKIPPING) reloptions_test;
107107
SELECT pg_relation_size('reloptions_test') > 0;
108108
?column?
109109
----------
@@ -129,7 +129,7 @@ INSERT INTO reloptions_test VALUES (1, NULL), (NULL, NULL);
129129
ERROR: null value in column "i" of relation "reloptions_test" violates not-null constraint
130130
DETAIL: Failing row contains (null, null).
131131
-- Do an aggressive vacuum to prevent page-skipping.
132-
VACUUM FREEZE reloptions_test;
132+
VACUUM (FREEZE, DISABLE_PAGE_SKIPPING) reloptions_test;
133133
SELECT pg_relation_size('reloptions_test') = 0;
134134
?column?
135135
----------

src/test/regress/sql/reloptions.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ CREATE TABLE reloptions_test(i INT NOT NULL, j text)
6262
SELECT reloptions FROM pg_class WHERE oid = 'reloptions_test'::regclass;
6363
INSERT INTO reloptions_test VALUES (1, NULL), (NULL, NULL);
6464
-- Do an aggressive vacuum to prevent page-skipping.
65-
VACUUM FREEZE reloptions_test;
65+
VACUUM (FREEZE, DISABLE_PAGE_SKIPPING) reloptions_test;
6666
SELECT pg_relation_size('reloptions_test') > 0;
6767

6868
SELECT reloptions FROM pg_class WHERE oid =
@@ -73,7 +73,7 @@ ALTER TABLE reloptions_test RESET (vacuum_truncate);
7373
SELECT reloptions FROM pg_class WHERE oid = 'reloptions_test'::regclass;
7474
INSERT INTO reloptions_test VALUES (1, NULL), (NULL, NULL);
7575
-- Do an aggressive vacuum to prevent page-skipping.
76-
VACUUM FREEZE reloptions_test;
76+
VACUUM (FREEZE, DISABLE_PAGE_SKIPPING) reloptions_test;
7777
SELECT pg_relation_size('reloptions_test') = 0;
7878

7979
-- Test toast.* options

0 commit comments

Comments
 (0)