pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add the option to report WAL usage in EXPLAIN and auto_explain.
Date: Mon, 06 Apr 2020 02:42:08 +0000
Message-ID: <E1jLHiC-0002v9-6J@gemulon.postgresql.org> (raw)

Add the option to report WAL usage in EXPLAIN and auto_explain.

This commit adds a new option WAL similar to existing option BUFFERS in the
EXPLAIN command.  This option allows to include information on WAL record
generation added by commit df3b181499 in EXPLAIN output.

This also allows the WAL usage information to be displayed via
the auto_explain module.  A new parameter auto_explain.log_wal controls
whether WAL usage statistics are printed when an execution plan is logged.
This parameter has no effect unless auto_explain.log_analyze is enabled.

Author: Julien Rouhaud
Reviewed-by: Dilip Kumar and Amit Kapila
Discussion: https://postgr.es/m/CAB-hujrP8ZfUkvL5OYETipQwA=e3n7oqHFU=4ZLxWS_Cza3kQQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/33e05f89c53e5a1533d624046bb6fb0da7bb7141

Modified Files
--------------
contrib/auto_explain/auto_explain.c | 15 ++++++++
doc/src/sgml/auto-explain.sgml      | 20 ++++++++++
doc/src/sgml/ref/explain.sgml       | 14 +++++++
src/backend/commands/explain.c      | 74 +++++++++++++++++++++++++++++++++++--
src/bin/psql/tab-complete.c         |  4 +-
src/include/commands/explain.h      |  3 ++
6 files changed, 124 insertions(+), 6 deletions(-)



Message-ID: <E1jLHiC-0002v9-6J@gemulon.postgresql.org>
Permalink:  ../E1jLHiC-0002v9-6J@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jLHiC-0002v9-6J@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: akapila@postgresql.org
  Subject: Re: pgsql: Add the option to report WAL usage in EXPLAIN and auto_explain.
  In-Reply-To: <E1jLHiC-0002v9-6J@gemulon.postgresql.org>
  References: <E1jLHiC-0002v9-6J@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