Re: patch to add \watch to psql

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Will Leinweber <will(at)heroku(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: patch to add \watch to psql
Date: 2012-10-24 12:55:02
Message-ID: 5087E526.2050307@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2012-10-24 13:24:43 Re: [WIP] pg_ping utility
Previous Message Hannu Krosing 2012-10-24 12:15:11 Re: [RFC] CREATE QUEUE (log-only table) for londiste/pgQ ccompatibility