1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Improve header output from psql's \watch command.

Include the \pset title string if there is one, and shorten the prefab
part of the header to be "timestamp (every Ns)".  Per suggestion by
David Johnston.

Michael Paquier and Tom Lane
This commit is contained in:
Tom Lane
2016-03-21 18:18:13 -04:00
parent 92b7902deb
commit dea2b5960a
2 changed files with 35 additions and 12 deletions

View File

@ -2673,9 +2673,11 @@ testdb=&gt; <userinput>\setenv LESS -imx4F</userinput>
<term><literal>\watch [ <replaceable class="parameter">seconds</replaceable> ]</literal></term>
<listitem>
<para>
Repeatedly execute the current query buffer (like <literal>\g</>)
Repeatedly execute the current query buffer (as <literal>\g</> does)
until interrupted or the query fails. Wait the specified number of
seconds (default 2) between executions.
seconds (default 2) between executions. Each query result is
displayed with a header that includes the <literal>\pset title</>
string (if any), the time as of query start, and the delay interval.
</para>
</listitem>
</varlistentry>