pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix accumulation of parallel worker instrumentation.
2+ messages / 1 participants
[nested] [flat]

* pgsql: Fix accumulation of parallel worker instrumentation.
@ 2017-12-05 19:39 Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Robert Haas @ 2017-12-05 19:39 UTC (permalink / raw)
  To: pgsql-committers

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Fix accumulation of parallel worker instrumentation.
@ 2017-12-05 19:39 Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Robert Haas @ 2017-12-05 19:39 UTC (permalink / raw)
  To: pgsql-committers

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
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/778e78ae9fa51e58f41cbdc72b293291d02d8984

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2017-12-05 19:39 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-12-05 19:39 pgsql: Fix accumulation of parallel worker instrumentation. Robert Haas <rhaas@postgresql.org>
2017-12-05 19:39 pgsql: Fix accumulation of parallel worker instrumentation. Robert Haas <rhaas@postgresql.org>

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