Re: [INTERFACES] PQnotifies & select

Поиск
Список
Период
Сортировка
От Ken J. Wright
Тема Re: [INTERFACES] PQnotifies & select
Дата
Msg-id 3.0.32.19990923181657.0093ae70@ren.cncware.com
обсуждение исходный текст
Список pgsql-interfaces
At 20:35 09/23/1999 -0400, Tom Lane wrote:
>"Ken J. Wright" <ken@ori-ind.com> writes:
>> What handle(s) would I need to feed to select() to wait for a notification
>> which I can then pickup via PQnotifies()?
>
>PQsocket(connobject) delivers the file descriptor, or -1 if there is no
>open connection.  There is some doco about this in the current
>documentation set, although I have to agree it's terse.

Thanks Ewan & Tom. Yes, the docs describing PQnotifies() suggests the usage
of select(), but lacks a pointer to PQsocket(). This would be a helpful
addition.

Cheers!

Ken




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [INTERFACES] PQnotifies & select
Следующее
От: wchart@pegasus1.it.kmutt.ac.th
Дата:
Сообщение: Re: pg_connect fuction