3 .\" Author: The PostgreSQL Global Development Group
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
6 .\" Manual: PostgreSQL 18.0 Documentation
7 .\" Source: PostgreSQL 18.0
10 .TH "UNLISTEN" "7" "2025" "PostgreSQL 18.0" "PostgreSQL 18.0 Documentation"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 UNLISTEN \- stop listening for a notification
35 UNLISTEN { \fIchannel\fR | * }
40 is used to remove an existing registration for
44 cancels any existing registration of the current
46 session as a listener on the notification channel named
47 \fIchannel\fR\&. The special wildcard
49 cancels all listener registrations for the current session\&.
52 contains a more extensive discussion of the use of
60 Name of a notification channel (any identifier)\&.
65 All current listen registrations for this session are cleared\&.
69 You can unlisten something you were not listening for; no warning or error will appear\&.
71 At the end of each session,
73 is automatically executed\&.
75 A transaction that has executed
77 cannot be prepared for two\-phase commit\&.
80 To make a registration:
88 Asynchronous notification "virtual" received from server process with PID 8448\&.
96 has been executed, further
98 messages will be ignored:
106 \-\- no NOTIFY event is received
115 command in the SQL standard\&.
117 \fBLISTEN\fR(7), \fBNOTIFY\fR(7)