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:
@ -2673,9 +2673,11 @@ testdb=> <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>
|
||||
|
Reference in New Issue
Block a user