Re: Listen / Notify - what to do when the queue is full

Поиск
Список
Период
Сортировка
От Andrew Chernow
Тема Re: Listen / Notify - what to do when the queue is full
Дата
Msg-id 4B049EBA.6010207@esilo.com
обсуждение исходный текст
Ответ на Re: Listen / Notify - what to do when the queue is full  (Greg Stark <gsstark@mit.edu>)
Список pgsql-hackers
> 
> That is, if the queue overflows what you should do is drop the
> payloads and condense all the messages for a given class into a single
> notification for that class with "unknown payload". That way if a
> cache which wants to invalidate specific objects gets a queue overflow
> condition then at least it knows it should rescan the original data
> and rebuild the cache and not just serve invalid data.
> 

That's far more complicated than throwing an error and it discards user payload 
information.  Let the error indicate a rescan is needed.

-- 
Andrew Chernow
eSilo, LLC
every bit counts
http://www.esilo.com/


В списке pgsql-hackers по дате отправления:

Предыдущее
От: James Pye
Дата:
Сообщение: Re: Python 3.1 support
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Listen / Notify - what to do when the queue is full