Re: Server->Client notification (without polling)?

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Server->Client notification (without polling)?
Дата
Msg-id 20060921030807.GA74201@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: Server->Client notification (without polling)?  (Wolfgang Keller <wolfgang.keller.nospam@gmx.de>)
Список pgsql-novice
On Wed, Sep 20, 2006 at 09:54:03PM +0200, Wolfgang Keller wrote:
> I read the manual again and now I understand that it's the libpq client
> library which requires polling a function to retrieve the notifications
> received from the server. Is there no way to tell the library "please call me
> when a notification arrives"?
>
> P.S.: I'm accessing PostgreSQL from Python if this matters, any of the Python
> modules for PostgreSQL access is ok for me instead of libpq.

Psycopg2 supports LISTEN/NOTIFY; see examples/notify.py in the psycopg2
source code.

http://www.initd.org/projects/psycopg2

--
Michael Fuhr

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Server->Client notification (without polling)?
Следующее
От: "snake84\@inwind\.it"
Дата:
Сообщение: Assertion