Skip to content

Commit f6162c0

Browse files
Fix parallel amvacuumcleanup safety bug.
Commit b4af70c inverted the return value of the function parallel_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. Hash indexes are affected, but since they just return the number of blocks during 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.com Backpatch: 14-, where commit b4af70c appears.
1 parent 61a86ed commit f6162c0

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
@@ -4120,7 +4120,7 @@ parallel_processing_is_safe(Relation indrel, LVShared *lvshared)
41204120
/* Skip, if the index does not support parallel cleanup */
41214121
if (((vacoptions & VACUUM_OPTION_PARALLEL_CLEANUP) == 0) &&
41224122
((vacoptions & VACUUM_OPTION_PARALLEL_COND_CLEANUP) == 0))
4123-
return true;
4123+
return false;
41244124

41254125
/*
41264126
* Skip, if the index supports parallel cleanup conditionally, but we

0 commit comments

Comments
 (0)