# PDO::PgSQL Notify support

- Thread: https://externals.io/message/42838
- Original archive: https://news-web.php.net/php.internals/42838
- Started by Matteo Beccati on 2009-01-26T00:13:12+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #42838 — Matteo Beccati — 2009-01-26T00:13:12+00:00

URL: https://externals.io/message/42838#42838

Hi,

the recent email about pg_get_socket reminded me that PDO:PgSQL doesn't
have notify support. Here's a small patch and a phpt that add support
for the LISTEN/NOTIFY mechanism using PDO. The PDO::pgsqlGetNotify
method only returns an assoc array, but it could be easily modified to
mimic the behaviour of pg_get_notify.

The patch applies to PHP 5.2 HEAD. If you find it useful I can provide
patches to PHP_5_3 or PHP_6.


Cheers

-- 
Matteo Beccati

OpenX - http://www.openx.org
