Initialize index stats during parallel VACUUM.

Peter Geoghegan <pg@bowt.ie>

Commit: 08c23f4204066aa86361eb6232d94284aa8dff00
Author: Peter Geoghegan <pg@bowt.ie>
Date: 2022-08-19T00:34:12Z
Releases: 15.0
Initialize index stats during parallel VACUUM.

Initialize shared memory allocated for index stats to avoid a hard
crash.  This was possible when parallel VACUUM became confused about the
current phase of index processing.

Oversight in commit 8e1fae1938, which refactored parallel VACUUM.

Author: Masahiko Sawada <sawada.mshk@gmail.com>
Reported-By: Justin Pryzby <pryzby@telsasoft.com>
Discussion: https://postgr.es/m/20220818133406.GL26426@telsasoft.com
Backpatch: 15-, the first version with the refactoring commit.

Files

PathChange+/−
src/backend/commands/vacuumparallel.c modified +1 −0

Discussion