From: Michael Fuhr <mike@fuhr.org>
To: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Listen / Notify questions
Date: Sun, 9 Jul 2006 10:51:03 -0600
Message-ID: <20060709165103.GB63466@winnie.fuhr.org> (raw)
In-Reply-To: <1152438195.17031.5.camel@localhost>
References: <1152438195.17031.5.camel@localhost>
On Sun, Jul 09, 2006 at 11:43:15AM +0200, Joost Kraaijeveld wrote:
> 1. Is there a way to determine which sessions are listening for a
> certain notify message?
SELECT * FROM pg_listener;
http://www.postgresql.org/docs/8.1/interactive/catalog-pg-listener.html> 2. If a session ends without "unlisten" (e.g. my listening program
> crashes), is that session automatically removed from the list of
> sessions that should be notified?
According to the LISTEN documentation, "A session's listen registrations
are automatically cleared when the session ends." You can confirm
this by querying pg_listener.
http://www.postgresql.org/docs/8.1/interactive/sql-listen.html
--
Michael Fuhr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: mike@fuhr.org, J.Kraaijeveld@Askesis.nl
Subject: Re: Listen / Notify questions
In-Reply-To: <20060709165103.GB63466@winnie.fuhr.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox