pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
PDO and PostgreSQL's LISTEN/NOTIFY
2+ messages / 2 participants
[nested] [flat]

* PDO and PostgreSQL's LISTEN/NOTIFY
@ 2006-10-04 01:25 David J N Begley <d.begley@uws.edu.au>
  2006-10-10 02:57 ` Re: PDO and PostgreSQL's LISTEN/NOTIFY Robert Treat <xzilla@users.sourceforge.net>
  0 siblings, 1 reply; 2+ messages in thread

From: David J N Begley @ 2006-10-04 01:25 UTC (permalink / raw)
  To: pgsql-php

Is anyone aware of any effort currently underway to add support for
PostgreSQL's LISTEN/NOTIFY (async notification) feature to PDO?

At present the notification mechanism:

  http://www.postgresql.org/docs/8.1/interactive/libpq-notify.html

is only available within PHP whilst using the old-style API:

  http://www.php.net/manual/en/function.pg-get-notify.php

Unfortunately this means that applications ordinarily using PDO have to
include a mixture of old/new APIs (and separate connections/sessions) if they
want to receive notification messages.  I was thinking of putting some time
into proposing an addition to the PDO_PGSQL driver:

  http://www.php.net/manual/en/ref.pdo-pgsql.php

but didn't want to duplicate effort if someone has already written the code to
handle this feature.

Thanks..



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

* Re: PDO and PostgreSQL's LISTEN/NOTIFY
  2006-10-04 01:25 PDO and PostgreSQL's LISTEN/NOTIFY David J N Begley <d.begley@uws.edu.au>
@ 2006-10-10 02:57 ` Robert Treat <xzilla@users.sourceforge.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Robert Treat @ 2006-10-10 02:57 UTC (permalink / raw)
  To: pgsql-php@postgresql.org, David J N Begley <d.begley@uws.edu.au>

On Tuesday 03 October 2006 21:25, David J N Begley wrote:
> Is anyone aware of any effort currently underway to add support for
> PostgreSQL's LISTEN/NOTIFY (async notification) feature to PDO?
>
> At present the notification mechanism:
>
>   http://www.postgresql.org/docs/8.1/interactive/libpq-notify.html
>
> is only available within PHP whilst using the old-style API:
>
>   http://www.php.net/manual/en/function.pg-get-notify.php
>
> Unfortunately this means that applications ordinarily using PDO have to
> include a mixture of old/new APIs (and separate connections/sessions) if
> they want to receive notification messages.  I was thinking of putting some
> time into proposing an addition to the PDO_PGSQL driver:
>
>   http://www.php.net/manual/en/ref.pdo-pgsql.php
>
> but didn't want to duplicate effort if someone has already written the code
> to handle this feature.
>

I talked to Wez about this and he generally didn't know what listen/notify was 
so he was pretty sure no one had gotten to the point of sending in a PDO 
patch his way.  He's certainly up for looking at a patch but had concern that 
this might be something with too much of a postgresql specific tone, and 
recommending investigating something like microsofts service broker 
functionality to see if some common ground could be found.  HTH.

-- 
Robert Treat
Build A Brighter LAMP :: Linux Apache {middleware} PostgreSQL



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


end of thread, other threads:[~2006-10-10 02:57 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-10-04 01:25 PDO and PostgreSQL's LISTEN/NOTIFY David J N Begley <d.begley@uws.edu.au>
2006-10-10 02:57 ` Robert Treat <xzilla@users.sourceforge.net>

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