Re: Determine all listeners subscribed to notifcations and what channels

From: Igor Neyman <ineyman(at)perceptron(dot)com>
To: Cory Tucker <cory(dot)tucker(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Determine all listeners subscribed to notifcations and what channels
Date: 2015-02-17 21:25:21
Message-ID: A76B25F2823E954C9E45E32FA49D70ECC22A2872@mail.corp.perceptron.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

From: pgsql-general-owner(at)postgresql(dot)org [mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Cory Tucker
Sent: Tuesday, February 17, 2015 4:21 PM
To: pgsql-general(at)postgresql(dot)org
Subject: [GENERAL] Determine all listeners subscribed to notifcations and what channels

I'm interested in trying to figure out which channels have been subscribed to (using LISTEN). From what I could tell via a little Googling, there used to be a table named pg_catalog.pg_listener that contained all this information, but that seems to have disappeared somewhere in the 9.x release (I'm using 9.3.x).

Is there a way to find out which channels have listeners?

thanks
--Cory

Take a look at pg_listening_channels() in PG docs.

Regards,
Igor Neyman

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Igor Neyman 2015-02-17 21:29:43 Re: Issue dumping schema using readonly user
Previous Message Cory Tucker 2015-02-17 21:20:58 Determine all listeners subscribed to notifcations and what channels