Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3414099

Browse files
committed
Try to stabilize the reloptions test.
Where we test vacuum_truncate's effects, sometimes this is failing totruncate as expected on the build farm. That could be explained by pageskipping, so disable it explicitly, with the theory that commitfe246d1didn'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 parentdda42ff commit3414099

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎src/test/regress/expected/reloptions.out

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ CREATE TABLE reloptions_test(i INT NOT NULL, j text)
6262
SELECT reloptionsFROM pg_classWHEREoid='reloptions_test'::regclass;
6363
INSERT INTO reloptions_testVALUES (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 reloptionsFROM pg_classWHEREoid=
@@ -73,7 +73,7 @@ ALTER TABLE reloptions_test RESET (vacuum_truncate);
7373
SELECT reloptionsFROM pg_classWHEREoid='reloptions_test'::regclass;
7474
INSERT INTO reloptions_testVALUES (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)

[8]ページ先頭

©2009-2025 Movatter.jp