Re: Listen / Notify rewrite
| От | Andrew Chernow |
|---|---|
| Тема | Re: Listen / Notify rewrite |
| Дата | |
| Msg-id | 4AFB510C.806@esilo.com обсуждение исходный текст |
| Ответ на | Re: Listen / Notify rewrite (Martijn van Oosterhout <kleptog@svana.org>) |
| Ответы |
Re: Listen / Notify rewrite
Re: Listen / Notify rewrite |
| Список | pgsql-hackers |
/* + * This function is executed for every notification found in the queue in order + * to check if the current backend is listening on that channel. Not sure if we + * should further optimize this, for example convert to a sorted array and + * allow binary search on it... + */ + static bool + IsListeningOn(const char *channel) I think a bsearch would be needed. Very busy servers that make heavy use of notifies would be quite a penalty. -- Andrew Chernow eSilo, LLC every bit counts http://www.esilo.com/
В списке pgsql-hackers по дате отправления: