Search⌘ K

Limitations and Support of Listen and Notify

Explore PostgreSQL's listen and notify system for asynchronous communication, understand its limitations in event queueing, and learn how different drivers like Java JDBC, Psycopg for Python, and Go's pq handle notifications. This lesson helps you grasp practical use cases and implementation challenges to effectively integrate notification features in your applications.

Limitations of listen and notify

It is important for an application, using the PostgreSQL notification capabilities, to miss notification events. Notifications are only sent to connected client connections.

Any queueing mechanism requires that events that are accumulated when there’s no worker connected, are kept available until the next connection. Replication is a special case of event queueing. It’s not possible to implement queueing correctly ...