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

Commit00ee6c7

Browse files
committed
autovacuum: Fix polarity of "wraparound" variable
Commit0d83138 inadvertently reversed the meaning of thewraparound variable. This causes vacuums which are not required forwraparound to wait for locks to be acquired, and what is worse, itallows wraparound vacuums to skip locked pages.Bug reported by Jeff Janes inhttp://www.postgresql.org/message-id/CAMkU=1xmTEiaY=5oMHsSQo5vd9V1Ze4kNLL0qN2eH0P_GXOaYw@mail.gmail.comAnalysis and patch by Kyotaro HORIGUCHI
1 parentc02ef23 commit00ee6c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/postmaster/autovacuum.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2526,7 +2526,7 @@ table_recheck_autovac(Oid relid, HTAB *table_toast_map,
25262526
tab->at_vacoptions=VACOPT_SKIPTOAST |
25272527
(dovacuum ?VACOPT_VACUUM :0) |
25282528
(doanalyze ?VACOPT_ANALYZE :0) |
2529-
(wraparound ?VACOPT_NOWAIT :0);
2529+
(!wraparound ?VACOPT_NOWAIT :0);
25302530
tab->at_params.freeze_min_age=freeze_min_age;
25312531
tab->at_params.freeze_table_age=freeze_table_age;
25322532
tab->at_params.multixact_freeze_min_age=multixact_freeze_min_age;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp