This page in other versions: Unsupported versions: 7.2 / 7.3 / 7.4 / 8.0 / 8.1 / 8.2 / 8.3 / 8.4

3.13. pg_listener

pg_listener supports the LISTEN and NOTIFY commands. A listener creates an entry in pg_listener for each notification name it is listening for. A notifier scans pg_listener and updates each matching entry to show that a notification has occurred. The notifier also sends a signal (using the PID recorded in the table) to awaken the listener from sleep.

Table 3-13. pg_listener Columns

Name Type References Description
relname name   Notify condition name. (The name need not match any actual relation in the database; the term "relname" is historical.)
listenerpid int4   PID of the backend process that created this entry.
notification int4   Zero if no event is pending for this listener. If an event is pending, the PID of the backend that sent the notification.

Submit correction

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.

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