Re: patch to add \watch to psql - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: patch to add \watch to psql
Date
Msg-id 5087E526.2050307@gmx.net
Whole thread Raw
In response to patch to add \watch to psql  (Will Leinweber <will@heroku.com>)
List 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




pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: [RFC] CREATE QUEUE (log-only table) for londiste/pgQ ccompatibility
Next
From: Alvaro Herrera
Date:
Subject: Re: [WIP] pg_ping utility