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: Match the buffer usage tracking for leader and worker backends.
Date: Fri, 03 Aug 2018 05:15:54 +0000
Message-ID: <E1flSRO-0006um-DT@gemulon.postgresql.org> (raw)

Match the buffer usage tracking for leader and worker backends.

In the leader backend, we don't track the buffer usage for ExecutorStart
phase whereas in worker backend we track it for ExecutorStart phase as
well.  This leads to different value for buffer usage stats for the
parallel and non-parallel query.  Change the code so that worker backend
also starts tracking buffer usage after ExecutorStart.

Author: Amit Kapila and Robert Haas
Reviewed-by: Robert Haas and Andres Freund
Backpatch-through: 9.6 where this code was introduced
Discussion: https://postgr.es/m/86137f17-1dfb-42f9-7421-82fd786b04a1@anayrat.info

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7124c93fb54fdd3bcf98e29392fc66ddb81f5343

Modified Files
--------------
src/backend/executor/execParallel.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1flSRO-0006um-DT@gemulon.postgresql.org>
Permalink:  ../E1flSRO-0006um-DT@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1flSRO-0006um-DT@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: Match the buffer usage tracking for leader and worker backends.
  In-Reply-To: <E1flSRO-0006um-DT@gemulon.postgresql.org>
  References: <E1flSRO-0006um-DT@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