pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Rework EXPLAIN format for incremental sort
Date: Tue, 12 May 2020 18:17:01 +0000
Message-ID: <E1jYZSf-0003EM-0n@gemulon.postgresql.org> (raw)

Rework EXPLAIN format for incremental sort

The explain format used by incremental sort was somewhat inconsistent
with other nodes, making it harder to parse and understand. This commit
addresses that by

 - adding an extra space to better separate groups of values

 - using colons instead of equal signs to separate key/value

 - properly capitalizing first letter of a key

 - using separate lines for full and pre-sorted groups

These changes were proposed by Justin Pryzby and mostly copy the final
explain format used to report WAL usage.

Author: Justin Pryzby
Reviewed-by: James Coleman
Discussion: https://postgr.es/m/20200419023625.GP26953@telsasoft.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6a918c3ac8a6b1d8b53cead6fcb7cbd84eee5750

Modified Files
--------------
src/backend/commands/explain.c                 | 21 +++++++++------------
src/test/regress/expected/incremental_sort.out | 21 +++++++++++----------
src/test/regress/sql/incremental_sort.sql      |  4 ++--
3 files changed, 22 insertions(+), 24 deletions(-)



Message-ID: <E1jYZSf-0003EM-0n@gemulon.postgresql.org>
Permalink:  ../E1jYZSf-0003EM-0n@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jYZSf-0003EM-0n@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: tomas.vondra@postgresql.org
  Subject: Re: pgsql: Rework EXPLAIN format for incremental sort
  In-Reply-To: <E1jYZSf-0003EM-0n@gemulon.postgresql.org>
  References: <E1jYZSf-0003EM-0n@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