]> granicus.if.org Git - postgresql/commit
Fix EXPLAIN ANALYZE output for Parallel Hash.
authorAndres Freund <andres@anarazel.de>
Mon, 1 Jan 2018 22:38:23 +0000 (14:38 -0800)
committerAndres Freund <andres@anarazel.de>
Mon, 1 Jan 2018 22:38:23 +0000 (14:38 -0800)
commit93ea78b17c4743c2b63edb5998fb5796ae57e289
tree45f2cb534f47cd7804e4304e16cf4590392e9314
parent6078770c1a6c247bb74742cb1b82733cce8afcab
Fix EXPLAIN ANALYZE output for Parallel Hash.

In a race case, EXPLAIN ANALYZE could fail to display correct nbatch
and size information.  Refactor so that participants report only on
batches they worked on rather than trying to report on all of them,
and teach explain.c to consider the HashInstrumentation object from
all participants instead of picking the first one it can find.  This
should fix an occasional build farm failure in the "join" regression
test.

Author: Thomas Munro
Reviewed-By: Andres Freund
Discussion: https://postgr.es/m/30219.1514428346%40sss.pgh.pa.us
src/backend/commands/explain.c
src/backend/executor/nodeHash.c
src/backend/executor/nodeHashjoin.c
src/include/executor/nodeHash.h