Re: patch to add \watch to psql

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: patch to add \watch to psql
Дата
Msg-id 5087E526.2050307@gmx.net
обсуждение исходный текст
Ответ на patch to add \watch to psql  (Will Leinweber <will@heroku.com>)
Список 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 по дате отправления:

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: [RFC] CREATE QUEUE (log-only table) for londiste/pgQ ccompatibility
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [WIP] pg_ping utility