In the previous chapter, we discussed aggregate concepts, where we created custom aggregates to solve users’ specific problems using state changes and final functions. In this chapter, we will talk about the LISTEN and NOTIFY commands, which act as interprocess communication between database connections. Essentially, two sessions communicate over a channel, with LISTEN looking for changes from the other session and NOTIFY sending messages ...
18. Listen and Notify
Get Procedural Programming with PostgreSQL PL/pgSQL: Design Complex Database-Centric Applications with PL/pgSQL now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.