Re: Listen and Notify

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Listen and Notify
Дата
Msg-id CAHyXU0xN8=_g2Q2PXQY2Yy+KJ+LtsEt1FqLQvGiPZSjc1GxHew@mail.gmail.com
обсуждение исходный текст
Ответ на Listen and Notify  (Alexander Reichstadt <lxr@mac.com>)
Ответы Re: Listen and Notify
Список pgsql-general
On Mon, Apr 30, 2012 at 1:47 AM, Alexander Reichstadt <lxr@mac.com> wrote:
> Hi,
>
> From the documentation I was able to build a trigger firing upon deletion of a record a function that delivers
tablename_operationas a notification one needs to subscribe to. So in terminal I can say LISTEN persons_delete and
instantlywill receive 
>
>        Asynchronous notification "persons_delete" received from server process with PID 54790.
>
> if there was a delete. But what I don't fully understand is how to do this with PQnotifies. Following the docu I get
nonotifications even though I subscribe to them after successfully connecting to the server the same way I do using
terminal.
>
> Googling didn't give me examples I was able to use. Please, can someone help?

I'm suspecting operator error because using PQnotifies is exactly what
psql does.  Maybe you could post a small test program?  Are you using
a mixed case notification name?

merlin

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Listen and Notify
Следующее
От: leaf_yxj
Дата:
Сообщение: Test ODBC connection failed. Pleae help me to take a look. Thanks.