Re: explain analyze output with parallel workers - question about meaning of information for explain.depesz.com
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: Hubert Lubaczewski <depesz@depesz.com>, pgsql-hackers mailing list <pgsql-hackers@postgresql.org>
Date: 2017-11-28T16:12:47Z
Lists: pgsql-hackers
On Tue, Nov 28, 2017 at 2:23 AM, Amit Kapila <amit.kapila16@gmail.com> wrote: > That is wrong and I think you have hit a bug. It should be 2974 * 5 = > 14870 as you have seen in other cases. The problem is that during > rescan, we generally reinitialize the required state, but we forgot to > reinitialize the instrumentation related memory which is used in the > accumulation of stats, so changing that would fix some part of this > problem which is that at Parallel node, you won't see wrong values. > However, we also need to ensure that the per-worker details also get > accumulated across rescans. Attached patch should fix the problem you > are seeing. I think this needs some more analysis and testing to see > if everything works in the desired way. > > Is it possible for you to test the attached patch and see if you are > still seeing any unexpected values? FWIW, this looks sensible to me. Not sure if there's any good way to write a regression test for it. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Commits
-
Back-port fix for accumulation of parallel worker instrumentation.
- 2157a61b5aa3 9.6.7 landed
-
Test instrumentation of Hash nodes with parallel query.
- 7d3583ad9ae5 11.0 landed
-
Try again to fix accumulation of parallel worker instrumentation.
- 72567f617460 10.2 landed
- 8526bcb2df76 11.0 landed
-
Revert "Fix accumulation of parallel worker instrumentation."
- 7b3f85073c8d 10.2 landed
- 1d6fb35ad629 11.0 landed
-
Fix accumulation of parallel worker instrumentation.
- 778e78ae9fa5 10.2 landed
- 2c09a5c12a66 11.0 landed