This patch has been applied to DBDpg and will appear in the next
official release. Thanks.
---------------------------------------------------------------------------
Alex Pilosov wrote:
> Edmund & all,
>
> Attached is a patch to add support for asynchronous notifications to
> DBD::Pg interface.
>
> Added following functions (self-documented in Pg.pm):
>
> $ret = $dbh->func('notifies');
>
> Returns either undef or a reference to two-element array
> [ $table, $backend_pid ] of asynchronous notifications received.
>
> $fd = $dbh->func('getfd');
>
> Returns fd of the actual connection to server. Can be used with
> select() and func('notifies').
>
> Also modified test.pl to test all of this functionality in the following
> sequence (listen, select, notify, select).
>
> Edmund, please consider adding to next release.
>
> Thanks
>
> -alex
Content-Description: dbdpg_notifies.patch
[ Attachment, skipping... ]
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
--
Bruce Momjian | http://candle.pha.pa.us
[EMAIL PROTECTED] | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073