pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Improve readability of the output of psql's \timing command.
Date: Sat, 03 Sep 2016 19:29:17 +0000
Message-ID: <E1bgGcv-0003q1-5t@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Improve readability of the output of psql's \timing command.

In addition to the existing decimal-milliseconds output value,
display the same value in mm:ss.fff format if it exceeds one second.
Tack on hours and even days fields if the interval is large enough.
This avoids needing mental arithmetic to convert the values into
customary time units.

Corey Huinker, reviewed by Gerdan Santos; bikeshedding by many

Discussion: <CADkLM=dbC4R8sbbuFXQVBFWoJGQkTEW8RWnC0PbW9nZsovZpJQ@mail.gmail.com>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/6591f4226c81104f7746da6a5c00519919c560ae

Modified Files
--------------
doc/src/sgml/ref/psql-ref.sgml |  7 ++++--
src/bin/psql/common.c          | 56 ++++++++++++++++++++++++++++++++++++++++--
2 files changed, 59 insertions(+), 4 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1bgGcv-0003q1-5t@gemulon.postgresql.org>
Permalink:  ../E1bgGcv-0003q1-5t@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1bgGcv-0003q1-5t@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Improve readability of the output of psql's \timing command.
  In-Reply-To: <E1bgGcv-0003q1-5t@gemulon.postgresql.org>
  References: <E1bgGcv-0003q1-5t@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