Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Support for LISTEN / NOTIFY -- Feedback wanted! #496
I've been working on adding support for LISTEN / NOTIFY to Postico.
There's a lot we could do with those commands, but for now I've decided to just show a notification whenever a NOTIFY message is received from the server.
Here's how to use it:
The main use case I have in mind for this is debugging applications that use LISTEN/NOTIFY.
Does anybody use LISTEN / NOTIFY with PostgreSQL? I'd love to hear about your use cases, and if you'd use this feature in Postico.
OK, so I discovered the cause of the issue. The problem was that for some reason, the invisible "query done" notification was preventing the "notify" notification from showing -- but only on 10.13.
I've now changed how query done notifications work (see #342), and now the NOTIFY messages should show up.
Thanks a lot for the feedback @qwesda!
Build 2458 or later should now support LISTEN / NOTIFY as expected!
works as expected now. Tested it directly with (
But I think a feature like this would need a dedicated interface. As soon as you have multiple
Maybe a separate window where you can:
Thanks. Those are good points. An interface like that would be much more useful than just displaying system notifications.
However, this would take a lot more effort than I want to put into this feature. I actually think that this would be enough functionality to build a standalone app...
So I think I'm going to leave the feature as it is, knowing that it's not quite there for "real work", but it's good enough to play a bit with LISTEN / NOTIFY. It's also unlikely to interfere, since you need to actively start listening.
For your use case, maybe you can use a simple python script like this:
Anyway, thanks for your feedback!