Search Postgresql Archives

Re: pg_listening_channels()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Greg Sabino Mullane [mailto:greg@xxxxxxxxxxxx]
> Sent: Thursday, November 29, 2012 11:34 PM
> To: pgsql-general@xxxxxxxxxxxxxx
> 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.

Regards,
Igor Neyman 


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux