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



-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to