Initialize index stats during parallel VACUUM.
commit662ba729a67e5c6e43efbc5263e1d2c3a72a8741
authorPeter Geoghegan <pg@bowt.ie>
Fri, 19 Aug 2022 00:34:14 +0000 (18 17:34 -0700)
committerPeter Geoghegan <pg@bowt.ie>
Fri, 19 Aug 2022 00:34:14 +0000 (18 17:34 -0700)
tree7e49189c7af0afb5ad43f2d431a97f7cd5de109e
parentd9fbb8862959912c5266364059c0abeda0c93bbf
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.
src/backend/commands/vacuumparallel.c