Re: patch to add \watch to psql
Peter Eisentraut <peter_e@gmx.net>
From: Peter Eisentraut <peter_e@gmx.net>
To: Will Leinweber <will@heroku.com>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2012-10-24T12:55:02Z
Lists: pgsql-hackers
On 10/19/12 8:15 PM, Will Leinweber wrote:
> This patch adds \watch to psql. It is much like the unix equivalent,
> defaulting to every 2 seconds, and allowing you optionally specify a
> number of seconds.
This doesn't handle multiline queries:
=> \watch select 1 +
ERROR: 42601: syntax error at end of input
LINE 1: select +
^
I think to make it cooperate better with psql syntax, put the \watch at
the end, as a replacement for \g, like
=> select something \watch