4 ms·
One reason that makes me dislike NOTIFY/LISTEN is that issues with it are hard to diagnose. Recently I had to stop using it because after a while all NOTIFY/LI
by MrPowerGamerBR 3y ago
One reason that makes me dislike NOTIFY/LISTEN is that issues with it are hard to diagnose.
Recently I had to stop using it because after a while all NOTIFY/LISTENS would stop working, and only a database restart would fix the issue https://dba.stackexchange.com/questions/325104/error-could-not-access-status-of-transaction-could-not-open-file-pg-xact-0029 https://dba.stackexchange.com/questions/325104/error-could-n...
- runeks 3y agoAt my previous company, they switched from using NOTIFY/LISTEN for Postgres notifications to a custom solution built on top of logical replication. As I understand it, part of the reason was reliability. I never touched that part of the code, but I believe the idea was to subscribe to logical replication updates and send out notifications based on these.
- cpursley 3y agoThis is what we do. Even put together a library for it: https://github.com/cpursley/walex https://github.com/cpursley/walex