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

Commitc59278a

Browse files
Fix parallel amvacuumcleanup safety bug.
Commitb4af70c inverted the return value of the functionparallel_processing_is_safe(), but missed the amvacuumcleanup test.Index AMs that don't support parallel cleanup at all were affected.The practical consequences of this bug were not very serious. Hashindexes are affected, but since they just return the number of blocksduring hashvacuumcleanup anyway, it can't have had much impact.Author: Masahiko Sawada <sawada.mshk@gmail.com>Discussion:https://postgr.es/m/CAD21AoA-Em+aeVPmBbL_s1V-ghsJQSxYL-i3JP8nTfPiD1wjKw@mail.gmail.comBackpatch: 14-, where commitb4af70c appears.
1 parent24f9e49 commitc59278a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/access/heap/vacuumlazy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4116,7 +4116,7 @@ parallel_processing_is_safe(Relation indrel, LVShared *lvshared)
41164116
/* Skip, if the index does not support parallel cleanup */
41174117
if (((vacoptions&VACUUM_OPTION_PARALLEL_CLEANUP)==0)&&
41184118
((vacoptions&VACUUM_OPTION_PARALLEL_COND_CLEANUP)==0))
4119-
returntrue;
4119+
returnfalse;
41204120

41214121
/*
41224122
* Skip, if the index supports parallel cleanup conditionally, but we

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp