Re: pg_notify but no pg_listen?

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: "A(dot)M(dot)" <agentm(at)themactionfaction(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: pg_notify but no pg_listen?
Date: 2010-08-24 02:18:18
Message-ID: 4C732BEA.4070800@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 08/24/2010 06:43 AM, Bruce Momjian wrote:
> A.M. wrote:
>> There is a new pg_notify function in pgsql 9.0 but no pg_listen
>> equivalent? Why? It sure would be handy to pass quoted strings...
>
> Notify sends the notify; there is no place to send a 'listen' payload.

I assume what they want is the ability to filter notifications, so they
only get notifications with a certain payload.

Seems to me that in that case you should just be using different notify
values (possibly using the two-argument form of pg_notify) so you can
listen on different things depending on what you are interested in.

--
Craig Ringer

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2010-08-24 02:21:54 Re: select from pipe-delimited field
Previous Message Craig Ringer 2010-08-24 02:14:59 Re: IBATIS support for postgres cursors