git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 38fc547) | patch
Try again to fix accumulation of parallel worker instrumentation.
2017年12月19日 17:21:56 +0000 (12:21 -0500)
2017年12月19日 17:21:56 +0000 (12:21 -0500)
commit 8526bcb2df76d5171b4f4d6dc7a97560a73a5eff
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
src/backend/executor/execParallel.c diff | blob | blame | history
src/backend/executor/nodeHash.c diff | blob | blame | history
src/backend/executor/nodeSort.c diff | blob | blame | history
src/include/executor/nodeHash.h diff | blob | blame | history
src/include/executor/nodeSort.h diff | blob | blame | history
src/test/regress/expected/select_parallel.out diff | blob | blame | history
src/test/regress/sql/select_parallel.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /