I'm connected to same database server running in Docker container via psql
client.
listen "virtual";
notify "virtual";
I would expect to see some kind of output in client A that it received asynchronous notification.
Can psql
client be used this way?
The notification is only retrieved from the server as a payload to a request. If the client does not send a request to the server, it will not see the notification.
In psql
you can run an empty statement (only a ;
) to do that:
someuser=> ;
Asynchronous notification "virtual" received from server process with PID 11284.
someuser=>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With