pgsql: Allow parallel vacuum to accumulate buffer usage.

From: Amit Kapila <akapila(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Allow parallel vacuum to accumulate buffer usage.
Date: 2020-04-02 02:45:42
Message-ID: E1jJprS-00074X-Lf@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3a5e22138a8d014590834eb808c99a436c246aab

Modified Files
--------------
src/backend/access/heap/vacuumlazy.c | 47 ++++++++++++++++++++++++++++++++++--
1 file changed, 45 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2020-04-02 03:57:49 pgsql: Add maintenance_io_concurrency to postgresql.conf.sample.
Previous Message Fujii Masao 2020-04-02 02:21:54 pgsql: Allow pg_stat_statements to track planning statistics.