From c6a3fce7dd4dae6e1a005e5b09cdd7c1d7f9c4f4 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 4 Apr 2013 19:56:33 -0400 Subject: Add \watch [SEC] command to psql. This allows convenient re-execution of commands. Will Leinweber, reviewed by Peter Eisentraut, Daniel Farina, and Tom Lane --- doc/src/sgml/ref/psql-ref.sgml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index c6347cd6f84..7547e51b5ea 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -2478,6 +2478,18 @@ testdb=> \setenv LESS -imx4F + + \watch [ seconds ] + + + Repeatedly execute the current query buffer (like \g) + until interrupted or the query fails. Wait the specified number of + seconds (default 2) between executions. + + + + + \x [ on | off | auto ] -- cgit v1.2.3