From dea2b5960a9460c02896ed361d35e92bce02801a Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 21 Mar 2016 18:18:13 -0400 Subject: 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 --- doc/src/sgml/ref/psql-ref.sgml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'doc/src') 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=> \setenv LESS -imx4F \watch [ seconds ] - Repeatedly execute the current query buffer (like \g) + Repeatedly execute the current query buffer (as \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 \pset title + string (if any), the time as of query start, and the delay interval. -- cgit v1.2.3