Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

unlisten(7) [redhat man page]

UNLISTEN(7)							   SQL Commands 						       UNLISTEN(7)

NAME
UNLISTEN - stop listening for a notification SYNOPSIS
UNLISTEN { notifyname | * } INPUTS notifyname Name of previously registered notify condition. * All current listen registrations for this backend are cleared. OUTPUTS UNLISTEN Acknowledgment that statement has executed. DESCRIPTION
UNLISTEN is used to remove an existing NOTIFY registration. UNLISTEN cancels any existing registration of the current PostgreSQL session as a listener on the notify condition notifyname. The special condition wildcard * cancels all listener registrations for the current ses- sion. NOTIFY [notify(7)] contains a more extensive discussion of the use of LISTEN and NOTIFY. NOTES notifyname need not be a valid class name but can be any string valid as a name up to 64 characters long. The backend does not complain if you unlisten something you were not listening for. Each backend will automatically execute UNLISTEN * when exiting. USAGE
To subscribe to an existing registration: LISTEN virtual; LISTEN NOTIFY virtual; NOTIFY Asynchronous NOTIFY 'virtual' from backend with pid '8448' received Once UNLISTEN has been executed, further NOTIFY commands will be ignored: UNLISTEN virtual; UNLISTEN NOTIFY virtual; NOTIFY -- notice no NOTIFY event is received COMPATIBILITY
SQL92 There is no UNLISTEN in SQL92. SQL - Language Statements 2002-11-22 UNLISTEN(7)

Check Out this Related Man Page

LISTEN(7)							   SQL Commands 							 LISTEN(7)

NAME
LISTEN - listen for a notification SYNOPSIS
LISTEN name DESCRIPTION
LISTEN registers the current session as a listener on the notification condition name. If the current session is already registered as a listener for this notification condition, nothing is done. Whenever the command NOTIFY name is invoked, either by this session or another one connected to the same database, all the sessions cur- rently listening on that notification condition are notified, and each will in turn notify its connected client application. See the dis- cussion of NOTIFY for more information. A session can be unregistered for a given notify condition with the UNLISTEN command. A session's listen registrations are automatically cleared when the session ends. The method a client application must use to detect notification events depends on which PostgreSQL application programming interface it uses. With the libpq library, the application issues LISTEN as an ordinary SQL command, and then must periodically call the function PQno- tifies to find out whether any notification events have been received. Other interfaces such as libpgtcl provide higher-level methods for handling notify events; indeed, with libpgtcl the application programmer should not even issue LISTEN or UNLISTEN directly. See the docu- mentation for the interface you are using for more details. NOTIFY [notify(7)] contains a more extensive discussion of the use of LISTEN and NOTIFY. PARAMETERS
name Name of a notify condition (any identifier). EXAMPLES
Configure and execute a listen/notify sequence from psql: LISTEN virtual; NOTIFY virtual; Asynchronous notification "virtual" received from server process with PID 8448. COMPATIBILITY
There is no LISTEN statement in the SQL standard. SEE ALSO
NOTIFY [notify(7)], UNLISTEN [unlisten(7)] SQL - Language Statements 2010-05-14 LISTEN(7)
Man Page

5 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Please remove my registration and last post from Unix Forums

Hi I obviously shouldn't have registered with this website for help, please can you remove my registration and last post. It has now been sorted elsewhere. Thanks (0 Replies)
Discussion started by: skylark167
0 Replies

2. UNIX for Dummies Questions & Answers

Notify Command.

Hi, I am using the NOTIFY command and I am getting the emails.. I tried MAILX and e-mail is being sent. I want to use NOTIFY to see if my jobs are completed or not. Am I missing something.. All your ideas are greatly appreciated.. Thanks Venky (2 Replies)
Discussion started by: venkyA
2 Replies

3. Forum Support Area for Unregistered Users & Account Problems

Unable to register

I tried registering couple of times, and got the following message. Sorry, registration denied. We check new registrations against a database of known forum spammers. At this time, we are unable to contact this database to verify your registration. We are sorry for the inconvenience but please... (0 Replies)
Discussion started by: josvasanth
0 Replies

4. Forum Support Area for Unregistered Users & Account Problems

Unable to register

I tried registering couple of times, and got the following message. "Sorry, registration denied. We check new registrations against a database of known forum spammers. At this time, we are unable to contact this database to verify your registration. ...you might want to try searching the... (1 Reply)
Discussion started by: cherry_sas
1 Replies

5. Programming

if condition in bash

Hi, I have meaning to include an if condition statement in my code to check the directory for existing output files and if its existing i want the program to delete it before doing the succeeding command. i just dont know the correct syntax for it. thanks much guys, this forum has indeed been very... (4 Replies)
Discussion started by: ida1215
4 Replies