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

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 6591f4226c81104f7746da6a5c00519919c560ae
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2016-09-03T19:29:03Z
Releases: 10.0
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>

Files

PathChange+/−
doc/src/sgml/ref/psql-ref.sgml modified +5 −2
src/bin/psql/common.c modified +54 −2

Documentation touched