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

Re: PDO and PostgreSQL's LISTEN/NOTIFY

From: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
To: pgsql-php(at)postgresql(dot)org, David J N Begley <d(dot)begley(at)uws(dot)edu(dot)au>
Subject: Re: PDO and PostgreSQL's LISTEN/NOTIFY
Date: 2006-10-10 02:57:07
Message-ID: 200610092257.07826.xzilla@users.sourceforge.net (view raw or flat)
Thread:
Lists: pgsql-php
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

In response to

pgsql-php by date

Next:From: ben wilkoDate: 2006-10-14 04:57:54
Subject: Re: Tutorial/Example of Insert/Select PDF Postgres DB ?
Previous:From: mark.dingeeDate: 2006-10-09 13:18:09
Subject: Re: Search an addresbook

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