Thread: Verifying LISTEN subscriptions?

Verifying LISTEN subscriptions?

From
Deven Phillips
Date:
From a connection which has previously executed a LISTEN <channel> statement, is there a query which I can run which will tell me if it is still listening on those channels?

Thanks in advance!!

Deven Phillips

Re: Verifying LISTEN subscriptions?

From
Deven Phillips
Date:
NVM, a quick search through the output of `\dfS` showed me the `pg_listening_channels()` function, which returns a TEXT[] of currently subscribed channels.


Cheers,

Deven

On Sat, Sep 17, 2016 at 8:45 AM, Deven Phillips <deven.phillips@gmail.com> wrote:
From a connection which has previously executed a LISTEN <channel> statement, is there a query which I can run which will tell me if it is still listening on those channels?

Thanks in advance!!

Deven Phillips