pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Fix accumulation of parallel worker instrumentation.
Date: Tue, 05 Dec 2017 19:39:29 +0000
Message-ID: <E1eMJ3x-0003th-Dp@gemulon.postgresql.org> (raw)

Fix accumulation of parallel worker instrumentation.

When a Gather or Gather Merge node is started and stopped multiple
times, the old code wouldn't reset the shared state between executions,
potentially resulting in dramatically inflated instrumentation data
for nodes beneath it.  (The per-worker instrumentation ended up OK,
I think, but the overall totals were inflated.)

Report by hubert depesz lubaczewski.  Analysis and fix by Amit Kapila,
reviewed and tweaked a bit by me.

Discussion: http://postgr.es/m/20171127175631.GA405@depesz.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2c09a5c12a66087218c7f8cba269cd3de51b9b82

Modified Files
--------------
src/backend/executor/execParallel.c           | 51 ++++++++++++++++++++-------
src/test/regress/expected/select_parallel.out | 21 +++++++++++
src/test/regress/sql/select_parallel.sql      |  7 ++++
3 files changed, 66 insertions(+), 13 deletions(-)



view thread (2+ messages)

Message-ID: <E1eMJ3x-0003th-Dp@gemulon.postgresql.org>
Permalink:  ../E1eMJ3x-0003th-Dp@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eMJ3x-0003th-Dp@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: rhaas@postgresql.org
  Subject: Re: pgsql: Fix accumulation of parallel worker instrumentation.
  In-Reply-To: <E1eMJ3x-0003th-Dp@gemulon.postgresql.org>
  References: <E1eMJ3x-0003th-Dp@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