]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix progress reporting of REINDEX CONCURRENTLY
authorMichael Paquier <michael@paquier.xyz>
Tue, 29 Sep 2020 05:15:57 +0000 (14:15 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 29 Sep 2020 05:15:57 +0000 (14:15 +0900)
commite66bcfb4c66ebc97020b1f7484b1529bd7993f23
tree376a9065101ae9b73d217432b413e0d0dca79611
parent56fe008996bc1a547ce60c8dddd2ca821cac163e
Fix progress reporting of REINDEX CONCURRENTLY

This addresses a couple of issues with the so-said subject:
- Report the correct parent relation with the index actually being
rebuilt or validated.  Previously, the command status remained set to
the last index created for the progress of the index build and
validation, which would be incorrect when working on a table that has
more than one index.
- Use the correct phase when waiting before the drop of the old
indexes.  Previously, this was reported with the same status as when
waiting before the old indexes are marked as dead.

Author: Matthias van de Meent, Michael Paquier
Discussion: https://postgr.es/m/CAEze2WhqFgcwe1_tv=sFYhLWV2AdpfukumotJ6JNcAOQs3jufg@mail.gmail.com
Backpatch-through: 12
src/backend/commands/indexcmds.c