LISTEN and NOTIFY are the common approaches to avoiding polling, but I've not used them myself (yet).
https://www.postgresql.org/docs/current/sql-listen.html
https://www.postgresql.org/docs/current/sql-notify.html
LISTEN and NOTIFY are the common approaches to avoiding polling, but I've not used them myself (yet).
https://www.postgresql.org/docs/current/sql-listen.html
https://www.postgresql.org/docs/current/sql-notify.html