Re: psql patch

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Jeroen T(dot) Vermeulen" <jtv(at)xs4all(dot)nl>
Cc: Neil Conway <neilc(at)samurai(dot)com>, PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: psql patch
Date: 2003-02-22 16:14:47
Message-ID: 14043.1045930487@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

"Jeroen T. Vermeulen" <jtv(at)xs4all(dot)nl> writes:
> One of the goals of my patch is to enable immediate notification of
> notifications, even when the listening process isn't issuing a query.
> Maybe it would be nice to be able to check for notifications e.g.
> whenever the input line is empty. That change would be rather messy
> without a slight restructuring.

Hmm. Once you have started to type, it would be annoying for the
thing to spit out notifications, even if you momentarily backspace
out what you've typed. I'd argue that it's only okay to print
notifications after completion of a command (where at least some
backslash constructs, eg \r, could be allowed to count as a command).

I find it kind of hard to envision situations where you'd really care
anyway. No one's going to use psql as the base for an interactive
application that depends on LISTEN/NOTIFY, surely?

regards, tom lane

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message greg 2003-02-22 16:42:55 Re: pg_ctl -w port detection
Previous Message Tom Lane 2003-02-22 16:08:21 Re: pg_ctl -w port detection