pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Try again to fix accumulation of parallel worker instrumentation 2+ messages / 1 participants [nested] [flat]
* pgsql: Try again to fix accumulation of parallel worker instrumentation @ 2017-12-19 17:48 Robert Haas <rhaas@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Robert Haas @ 2017-12-19 17:48 UTC (permalink / raw) To: pgsql-committers Try again to fix accumulation of parallel worker instrumentation. When a Gather or Gather Merge node is started and stopped multiple times, accumulate instrumentation data only once, at the end, instead of after each execution, to avoid recording inflated totals. Commit 778e78ae9fa51e58f41cbdc72b293291d02d8984, the previous attempt at a fix, instead reset the state after every execution, which worked for the general instrumentation data but had problems for the additional instrumentation specific to Sort and Hash nodes. Report by hubert depesz lubaczewski. Analysis and fix by Amit Kapila, following a design proposal from Thomas Munro, with a comment tweak by me. Discussion: http://postgr.es/m/20171127175631.GA405@depesz.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/8526bcb2df76d5171b4f4d6dc7a97560a73a5eff Modified Files -------------- src/backend/executor/execParallel.c | 26 +++++------- src/backend/executor/nodeHash.c | 13 ------ src/backend/executor/nodeSort.c | 17 -------- src/include/executor/nodeHash.h | 1 - src/include/executor/nodeSort.h | 1 - src/test/regress/expected/select_parallel.out | 59 ++++++++++++++++++++++++++- src/test/regress/sql/select_parallel.sql | 28 ++++++++++++- 7 files changed, 96 insertions(+), 49 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Try again to fix accumulation of parallel worker instrumentation @ 2017-12-19 17:48 Robert Haas <rhaas@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Robert Haas @ 2017-12-19 17:48 UTC (permalink / raw) To: pgsql-committers Try again to fix accumulation of parallel worker instrumentation. When a Gather or Gather Merge node is started and stopped multiple times, accumulate instrumentation data only once, at the end, instead of after each execution, to avoid recording inflated totals. Commit 778e78ae9fa51e58f41cbdc72b293291d02d8984, the previous attempt at a fix, instead reset the state after every execution, which worked for the general instrumentation data but had problems for the additional instrumentation specific to Sort and Hash nodes. Report by hubert depesz lubaczewski. Analysis and fix by Amit Kapila, following a design proposal from Thomas Munro, with a comment tweak by me. Discussion: http://postgr.es/m/20171127175631.GA405@depesz.com Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/72567f6174605c36ba520c80e71697d2601cac0a Modified Files -------------- src/backend/executor/execParallel.c | 20 ++++++++++---------- src/test/regress/expected/select_parallel.out | 21 +++++++++++++++++++++ src/test/regress/sql/select_parallel.sql | 7 +++++++ 3 files changed, 38 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2017-12-19 17:48 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2017-12-19 17:48 pgsql: Try again to fix accumulation of parallel worker instrumentation Robert Haas <rhaas@postgresql.org> 2017-12-19 17:48 pgsql: Try again to 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