pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
PQnotifies & select
4+ messages / 3 participants
[nested] [flat]

* PQnotifies & select
@ 1999-09-23 23:49 Ken J. Wright <ken@ori-ind.com>
  1999-09-24 00:00 ` Re: [INTERFACES] PQnotifies & select eem21@cam.ac.uk
  1999-09-24 00:35 ` Re: [INTERFACES] PQnotifies & select Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 2 replies; 4+ messages in thread

From: Ken J. Wright @ 1999-09-23 23:49 UTC (permalink / raw)
  To: pgsql-interfaces

What handle(s) would I need to feed to select() to wait for a notification
which I can then pickup via PQnotifies()?

Ken




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: [INTERFACES] PQnotifies & select
  1999-09-23 23:49 PQnotifies & select Ken J. Wright <ken@ori-ind.com>
@ 1999-09-24 00:00 ` eem21@cam.ac.uk
  1 sibling, 0 replies; 4+ messages in thread

From: eem21@cam.ac.uk @ 1999-09-24 00:00 UTC (permalink / raw)
  To: ken@ori-ind.com; +Cc: pgsql-interfaces

On 23 Sep, Ken J. Wright wrote:
> What handle(s) would I need to feed to select() to wait for a notification
> which I can then pickup via PQnotifies()?

PQsocket(conn), where conn is a pointer to your connection structure, I
think.

Ewan Mellor.




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: [INTERFACES] PQnotifies & select
  1999-09-23 23:49 PQnotifies & select Ken J. Wright <ken@ori-ind.com>
@ 1999-09-24 00:35 ` Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 4+ messages in thread

From: Tom Lane @ 1999-09-24 00:35 UTC (permalink / raw)
  To: Ken J. Wright <ken@ori-ind.com>; +Cc: pgsql-interfaces

"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.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: [INTERFACES] PQnotifies & select
@ 1999-09-24 01:16 Ken J. Wright <ken@ori-ind.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Ken J. Wright @ 1999-09-24 01:16 UTC (permalink / raw)
  To: 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





^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~1999-09-24 01:16 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-09-23 23:49 PQnotifies & select Ken J. Wright <ken@ori-ind.com>
1999-09-24 00:00 ` eem21@cam.ac.uk
1999-09-24 00:35 ` Tom Lane <tgl@sss.pgh.pa.us>
1999-09-24 01:16 Re: [INTERFACES] PQnotifies & select Ken J. Wright <ken@ori-ind.com>

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