pg_get_notify

 array pg_get_notify ( resource $connection [, int $result_type ] ) 

説明

pg_get_notify() gets notifications generated by a NOTIFY SQL command. To receive notifications, the LISTEN SQL command must be issued.

戻り値

An array containing the NOTIFY message name and backend PID. Otherwise if no NOTIFY is waiting, then FALSE is returned.