UNLISTEN { notifyname | * }
Use the UNLISTEN command to unregister a current NOTIFY registration matching the notify condition specified by notifyname. Alternatively, you can use the wildcard symbol (*) to remove all listener registrations for the current session.
Note | |
---|---|
When a backend shuts down it will automatically issue UNLISTEN * to remove all listener registrations. |
More information on using the NOTIFY and LISTEN commands (which work together to form simple IPC (interprocess communication) sysytem) can be found by referring to the NOTIFY reference section.