From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Improve readability of the output of psql's \timing command. |
Date: | 2016-09-03 19:29:17 |
Message-ID: | E1bgGcv-0003q1-5t@gemulon.postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-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(at)mail(dot)gmail(dot)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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2016-09-04 12:02:12 | pgsql: Clarify the new Red-Black post-order traversal code a bit. |
Previous Message | Tom Lane | 2016-09-03 18:19:01 | pgsql: Fix multiple bugs in numeric_poly_deserialize(). |