Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Listen to all notifications like `LISTEN *`

Is it possible to listen to all notification that are broadcast by Postgress? For example something like LISTEN * without having to create any ad-hoc channels like all_channels? I need this to minimize the number of active connection that are listening to notifications. Imagine that there would be 200 channels, this approach can actually minimize the number of active connections to only 1 for capturing all notifications.

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

No, that is not possible. Try to come up with a design that needs fewer channels – perhaps you can differentiate via the payload of the notification:

NOTIFY channel, '4711';
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading