mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
pgbench progress with timestamp
This patch adds an option to replace the "time since pgbench run started" with a Unix epoch timestamp in the progress report so that, for instance, it is easier to compare timelines with pgsql log Fabien COELHO <coelho@cri.ensmp.fr>
This commit is contained in:
@ -428,6 +428,19 @@ pgbench <optional> <replaceable>options</> </optional> <replaceable>dbname</>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--progress-timestamp</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
When showing progress (option <option>-P</>), use a timestamp
|
||||
(Unix epoch) instead of the number of seconds since the
|
||||
beginning of the run. The unit is in seconds, with millisecond
|
||||
precision after the dot.
|
||||
This helps compare logs generated by various tools.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-r</option></term>
|
||||
<term><option>--report-latencies</option></term>
|
||||
|
Reference in New Issue
Block a user