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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 5bcf389) | patch
Fix accumulation of parallel worker instrumentation.
Tue, 5 Dec 2017 19:35:33 +0000 (14:35 -0500)
Tue, 5 Dec 2017 19:35:33 +0000 (14:35 -0500)
commit 2c09a5c12a66087218c7f8cba269cd3de51b9b82
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
src/backend/executor/execParallel.c 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 によって変換されたページ (->オリジナル) /