[PATCH] notify support for DBD::Pg

Поиск
Список
Период
Сортировка
От Alex Pilosov
Тема [PATCH] notify support for DBD::Pg
Дата
Msg-id Pine.BSO.4.10.10106101552000.23782-200000@spider.pilosoft.com
обсуждение исходный текст
Список pgsql-interfaces
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

В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [DOCS] libpq sockets on win32
Следующее
От: Ilan Fait
Дата:
Сообщение: help