diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2016-03-21 18:18:13 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2016-03-21 18:18:13 -0400 |
commit | dea2b5960a9460c02896ed361d35e92bce02801a (patch) | |
tree | 6dc33f837698be3971c3bfd37921d31a9d1585b3 /doc/src | |
parent | 92b7902deb3155f6975f33e8b6c8be4d9d066172 (diff) |
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
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/psql-ref.sgml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index 8a8580411ee..385cb599278 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -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> |