mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-08 21:29:22 +02:00
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 fe246d1c
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
This commit is contained in:
parent
6d1a854c15
commit
bef1650592
@ -103,7 +103,7 @@ INSERT INTO reloptions_test VALUES (1, NULL), (NULL, NULL);
|
|||||||
ERROR: null value in column "i" violates not-null constraint
|
ERROR: null value in column "i" violates not-null constraint
|
||||||
DETAIL: Failing row contains (null, null).
|
DETAIL: Failing row contains (null, null).
|
||||||
-- Do an aggressive vacuum to prevent page-skipping.
|
-- Do an aggressive vacuum to prevent page-skipping.
|
||||||
VACUUM FREEZE reloptions_test;
|
VACUUM (FREEZE, DISABLE_PAGE_SKIPPING) reloptions_test;
|
||||||
SELECT pg_relation_size('reloptions_test') > 0;
|
SELECT pg_relation_size('reloptions_test') > 0;
|
||||||
?column?
|
?column?
|
||||||
----------
|
----------
|
||||||
@ -129,7 +129,7 @@ INSERT INTO reloptions_test VALUES (1, NULL), (NULL, NULL);
|
|||||||
ERROR: null value in column "i" violates not-null constraint
|
ERROR: null value in column "i" violates not-null constraint
|
||||||
DETAIL: Failing row contains (null, null).
|
DETAIL: Failing row contains (null, null).
|
||||||
-- Do an aggressive vacuum to prevent page-skipping.
|
-- Do an aggressive vacuum to prevent page-skipping.
|
||||||
VACUUM FREEZE reloptions_test;
|
VACUUM (FREEZE, DISABLE_PAGE_SKIPPING) reloptions_test;
|
||||||
SELECT pg_relation_size('reloptions_test') = 0;
|
SELECT pg_relation_size('reloptions_test') = 0;
|
||||||
?column?
|
?column?
|
||||||
----------
|
----------
|
||||||
|
@ -62,7 +62,7 @@ CREATE TABLE reloptions_test(i INT NOT NULL, j text)
|
|||||||
SELECT reloptions FROM pg_class WHERE oid = 'reloptions_test'::regclass;
|
SELECT reloptions FROM pg_class WHERE oid = 'reloptions_test'::regclass;
|
||||||
INSERT INTO reloptions_test VALUES (1, NULL), (NULL, NULL);
|
INSERT INTO reloptions_test VALUES (1, NULL), (NULL, NULL);
|
||||||
-- Do an aggressive vacuum to prevent page-skipping.
|
-- Do an aggressive vacuum to prevent page-skipping.
|
||||||
VACUUM FREEZE reloptions_test;
|
VACUUM (FREEZE, DISABLE_PAGE_SKIPPING) reloptions_test;
|
||||||
SELECT pg_relation_size('reloptions_test') > 0;
|
SELECT pg_relation_size('reloptions_test') > 0;
|
||||||
|
|
||||||
SELECT reloptions FROM pg_class WHERE oid =
|
SELECT reloptions FROM pg_class WHERE oid =
|
||||||
@ -73,7 +73,7 @@ ALTER TABLE reloptions_test RESET (vacuum_truncate);
|
|||||||
SELECT reloptions FROM pg_class WHERE oid = 'reloptions_test'::regclass;
|
SELECT reloptions FROM pg_class WHERE oid = 'reloptions_test'::regclass;
|
||||||
INSERT INTO reloptions_test VALUES (1, NULL), (NULL, NULL);
|
INSERT INTO reloptions_test VALUES (1, NULL), (NULL, NULL);
|
||||||
-- Do an aggressive vacuum to prevent page-skipping.
|
-- Do an aggressive vacuum to prevent page-skipping.
|
||||||
VACUUM FREEZE reloptions_test;
|
VACUUM (FREEZE, DISABLE_PAGE_SKIPPING) reloptions_test;
|
||||||
SELECT pg_relation_size('reloptions_test') = 0;
|
SELECT pg_relation_size('reloptions_test') = 0;
|
||||||
|
|
||||||
-- Test toast.* options
|
-- Test toast.* options
|
||||||
|
Loading…
Reference in New Issue
Block a user