Re: pg_listening_channels()

From: Dmitriy Igrishin <dmitigr(at)gmail(dot)com>
To: Igor Neyman <ineyman(at)perceptron(dot)com>
Cc: Greg Sabino Mullane <greg(at)turnstep(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg_listening_channels()
Date: 2012-12-01 16:58:52
Message-ID: CAAfz9KN5Vrwm_RTiTo+pjH4+YytgAaRXqZ+0gzAS75TURLv6pQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2012/11/30 Igor Neyman <ineyman(at)perceptron(dot)com>

> > -----Original Message-----
> > From: Greg Sabino Mullane [mailto:greg(at)turnstep(dot)com]
> > Sent: Thursday, November 29, 2012 11:34 PM
> > To: pgsql-general(at)postgresql(dot)org
> > Subject: Re: pg_listening_channels()
> >
> >
> > On the contrary, it was very well discussed and designed. Why do you
> > even care if the anyone is listening or not? Simply remove the "check
> > if anyone listens" step and send the NOTIFY.
> >
>
> Well, I guess we disagree on this.
>
> Why trashing the system with NOTIFYs no one listens to?
> Of course, like Tom Lane suggested, I could create a table similar to now
> obsolete pg_listener and manage it from the client that LISTENs and gets
> notifications.
>
> Also, what sense pg_listening_channels() function makes, if it returns
> channels that I created (in my current session/connection)?
> I don't need this function to know whether I issued LISTEN my_channel or
> not.
>
We need pg_listening_channels() because the information it returns should
be stored in the DB and applications (libraries) does not need to store it
in special places.

> Regards,
> Igor Neyman
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

--
// Dmitriy.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Kroon 2012-12-01 19:11:01 execute if statement
Previous Message Magnus Hagander 2012-12-01 13:43:26 Re: pg_basebackup questions