Allow parallel vacuum to accumulate buffer usage.
authorAmit Kapila <akapila@postgresql.org>
Thu, 2 Apr 2020 02:34:58 +0000 (08:04 +0530)
committerAmit Kapila <akapila@postgresql.org>
Thu, 2 Apr 2020 02:34:58 +0000 (08:04 +0530)
commit3a5e22138a8d014590834eb808c99a436c246aab
treea3511c30a428a0077b9901616b58ade3780b82e6
parent17e03282241c6ac58a714eb0c3b6a8018cf6167a
Allow parallel vacuum to accumulate buffer usage.

Commit 40d964ec99 allowed vacuum command to process indexes in parallel but
forgot to accumulate the buffer usage stats of parallel workers.  This
allows leader backend to accumulate buffer usage stats of all the parallel
workers.

Reported-by: Julien Rouhaud
Author: Sawada Masahiko
Reviewed-by: Dilip Kumar, Amit Kapila and Julien Rouhaud
Discussion: https://postgr.es/m/20200328151721.GB12854@nol
src/backend/access/heap/vacuumlazy.c