pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow parallel vacuum to accumulate buffer usage.
Date: Thu, 02 Apr 2020 02:45:42 +0000
Message-ID: <E1jJprS-00074X-Lf@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1jJprS-00074X-Lf@gemulon.postgresql.org>
Permalink:  ../E1jJprS-00074X-Lf@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jJprS-00074X-Lf@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: akapila@postgresql.org
  Subject: Re: pgsql: Allow parallel vacuum to accumulate buffer usage.
  In-Reply-To: <E1jJprS-00074X-Lf@gemulon.postgresql.org>
  References: <E1jJprS-00074X-Lf@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox