mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
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>
This commit is contained in:
@ -2789,8 +2789,11 @@ testdb=> <userinput>\setenv LESS -imx4F</userinput>
|
||||
<term><literal>\timing [ <replaceable class="parameter">on</replaceable> | <replaceable class="parameter">off</replaceable> ]</literal></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Without parameter, toggles a display of how long each SQL statement
|
||||
takes, in milliseconds. With parameter, sets same.
|
||||
With a parameter, turns displaying of how long each SQL statement
|
||||
takes on or off. Without a parameter, toggles the display between
|
||||
on and off. The display is in milliseconds; intervals longer than
|
||||
1 second are also shown in minutes:seconds format, with hours and
|
||||
days fields added if needed.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
Reference in New Issue
Block a user