]> granicus.if.org Git - postgresql/commit
Fix progress reporting of CLUSTER / VACUUM FULL
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 13 Sep 2019 17:51:13 +0000 (14:51 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 13 Sep 2019 17:54:26 +0000 (14:54 -0300)
commit6212276e4343f729b0152e81824f850d1a21d57e
treecf20463f64de377e577044cdf1cb09153ff4fb95
parenteb57bd9c1d83a20eaff559a53b2f584dcd0668a8
Fix progress reporting of CLUSTER / VACUUM FULL

The progress state was being clobbered once the first index completed
being rebuilt, causing the final phases of the operation not show
anything in the progress view.  This was inadvertently broken in
03f9e5cba0ee, which added progress tracking for REINDEX.

(The reason this bugfix is this small is that I had already noticed this
problem when writing monitoring for CREATE INDEX, and had already worked
around it, as can be seen in discussion starting at
https://postgr.es/m/20190329150218.GA25010@alvherre.pgsql Fixing the
problem is just a matter of fixing one place touched by the REINDEX
monitoring.)

Reported by: Álvaro Herrera
Author: Álvaro Herrera
Discussion: https://postgr.es/m/20190801184333.GA21369@alvherre.pgsql
src/backend/catalog/index.c
src/backend/commands/indexcmds.c
src/include/nodes/parsenodes.h