Received: from cncware.whidbey.com (IDENT:root@cncware.whidbey.com [208.25.171.37]) by hub.org (8.9.3/8.9.3) with ESMTP id VAA77147 for ; Thu, 23 Sep 1999 21:10:12 -0400 (EDT) (envelope-from ken@ori-ind.com) Received: from ken (ken.cncware.com [192.168.61.201]) by cncware.whidbey.com (8.9.3/8.9.3) with SMTP id SAA06278 for ; Thu, 23 Sep 1999 18:11:19 -0700 Message-Id: <3.0.32.19990923181657.0093ae70@ren.cncware.com> X-Sender: ken_ori@ren.cncware.com X-Mailer: Windows Eudora Pro Version 3.0 (32) Date: Thu, 23 Sep 1999 18:16:59 -0700 To: pgsql-interfaces@postgresql.org From: "Ken J. Wright" Subject: Re: [INTERFACES] PQnotifies & select Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 20:35 09/23/1999 -0400, Tom Lane wrote: >"Ken J. Wright" 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