pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@postgresql.org
Subject: pgsql: Fix EXPLAIN ANALYZE output for Parallel Hash.
Date: Mon, 01 Jan 2018 22:42:00 +0000
Message-ID: <E1eW8mO-00039O-Ts@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/93ea78b17c4743c2b63edb5998fb5796ae57e289

Modified Files
--------------
src/backend/commands/explain.c      | 79 ++++++++++++++++++++++++-------------
src/backend/executor/nodeHash.c     | 27 +++++--------
src/backend/executor/nodeHashjoin.c |  6 ---
src/include/executor/nodeHash.h     |  1 -
4 files changed, 62 insertions(+), 51 deletions(-)



Message-ID: <E1eW8mO-00039O-Ts@gemulon.postgresql.org>
Permalink:  ../E1eW8mO-00039O-Ts@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eW8mO-00039O-Ts@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: pgsql: Fix EXPLAIN ANALYZE output for Parallel Hash.
  In-Reply-To: <E1eW8mO-00039O-Ts@gemulon.postgresql.org>
  References: <E1eW8mO-00039O-Ts@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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