Skip site navigation (1) Skip section navigation (2)

Re: [INTERFACES] PQnotifies & select

From: "Ken J(dot) Wright" <ken(at)ori-ind(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: [INTERFACES] PQnotifies & select
Date: 1999-09-24 01:16:59
Message-ID: 3.0.32.19990923181657.0093ae70@ren.cncware.com (view raw or flat)
Thread:
Lists: pgsql-interfaces
At 20:35 09/23/1999 -0400, Tom Lane wrote:
>"Ken J. Wright" <ken(at)ori-ind(dot)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 by date

Next:From: Stavros TsirakidisDate: 1999-09-24 09:32:52
Subject:
Previous:From: Tom LaneDate: 1999-09-24 00:35:14
Subject: Re: [INTERFACES] PQnotifies & select

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group