pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ken J. Wright <ken@ori-ind.com>
To: pgsql-interfaces@postgresql.org
Subject: Re: [INTERFACES] PQnotifies & select
Date: Thu, 23 Sep 1999 18:16:59 -0700
Message-ID: <3.0.32.19990923181657.0093ae70@ren.cncware.com> (raw)

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





view thread (4+ messages)

Message-ID: <3.0.32.19990923181657.0093ae70@ren.cncware.com>
Permalink:  ../3.0.32.19990923181657.0093ae70@ren.cncware.com/
Also on:    postgresql.org/message-id/3.0.32.19990923181657.0093ae70@ren.cncware.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: ken@ori-ind.com
  Subject: Re: [INTERFACES] PQnotifies & select
  In-Reply-To: <3.0.32.19990923181657.0093ae70@ren.cncware.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox