How to persist messages in Postgresql's LISTEN/NOTIFY?
You can't replay them. If no one is listening, they're gone. Start up your own communication daemon to catch them. Then you can do whatever you want.