News for hackers. Stuff that matters.
Re:The Wonders of Postgres Logical Decoding Messages by cryptonector on Friday March 31, 2023 @10:58PM (#35396625)
NOTIFY also can be used this way.
Re:The Wonders of Postgres Logical Decoding Messages by klysm on Saturday April 01, 2023 @10:18AM (#35400503)
Notify is really hard to use correctly, and I think logical replication works better in most cases
Re:The Wonders of Postgres Logical Decoding Messages by semiquaver on Saturday April 01, 2023 @11:15AM (#35400922)
Correct me if I’m wrong but even though NOTIFY is transactional, it isn’t persisted to WAL or anywhere else —- so any clients that were not LISTENing at the time NOTIFY was called cannot receive it retroactively. WAL is, well, a log which has nicer properties for many applications that allow clients to “fall behind” or recover from transient network disconnects without losing data.