pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Include information on buffer usage during planning phase, in EX
Date: Fri, 03 Apr 2020 18:14:11 +0000
Message-ID: <E1jKQpX-0004fE-UF@gemulon.postgresql.org> (raw)

Include information on buffer usage during planning phase, in EXPLAIN output, take two.

When BUFFERS option is enabled, EXPLAIN command includes the information
on buffer usage during each plan node, in its output. In addition to that,
this commit makes EXPLAIN command include also the information on
buffer usage during planning phase, in its output. This feature makes it
easier to discern the cases where lots of buffer access happen during
planning.

This commit revives the original commit ed7a509571 that was reverted by
commit 19db23bcbd. The original commit had to be reverted because
it caused the regression test failure on the buildfarm members prion and
dory. But since commit c0885c4c30 got rid of the caues of the test failure,
the original commit can be safely introduced again.

Author: Julien Rouhaud, slightly revised by Fujii Masao
Reviewed-by: Justin Pryzby
Discussion: https://postgr.es/m/16109-26a1a88651e90608@postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ce77abe63cfc85fb0bc236deb2cc34ae35cb5324

Modified Files
--------------
src/backend/commands/explain.c        | 32 ++++++++++++++++++--
src/backend/commands/prepare.c        | 13 ++++++++-
src/include/commands/explain.h        |  3 +-
src/test/regress/expected/explain.out | 55 ++++++++++++++++++++++++++++++++---
4 files changed, 95 insertions(+), 8 deletions(-)



view thread (18+ messages)  latest in thread

Message-ID: <E1jKQpX-0004fE-UF@gemulon.postgresql.org>
Permalink:  ../E1jKQpX-0004fE-UF@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jKQpX-0004fE-UF@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: fujii@postgresql.org
  Subject: Re: pgsql: Include information on buffer usage during planning phase, in EX
  In-Reply-To: <E1jKQpX-0004fE-UF@gemulon.postgresql.org>
  References: <E1jKQpX-0004fE-UF@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