]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Initialize index stats during parallel VACUUM.
authorPeter Geoghegan <pg@bowt.ie>
Fri, 19 Aug 2022 00:34:12 +0000 (17:34 -0700)
committerPeter Geoghegan <pg@bowt.ie>
Fri, 19 Aug 2022 00:34:12 +0000 (17:34 -0700)
commit08c23f4204066aa86361eb6232d94284aa8dff00
treeaa482dc2ada2299b0a834effd8c6c54f47f925fb
parent72af71aad9ce541ecea67ceaa7961ca39f89f227
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