LISTEN / NOTIFY: Automatic client notification in PostgreSQL
LISTEN / NOTIFY
is a feature that enables users to listen to what goes on in the database. It is one of the oldest functionalities in PostgreSQL and is still widely used. The main question is: What is the purpose of the asynchronous query interface (LISTEN / NOTIFY
), and what is it good for? The basic idea is to avoid polling.
Source: LISTEN / NOTIFY: Automatic client notification in PostgreSQL, an article by Hans-Jürgen Schönig.