Re: Listen / Notify - what to do when the queue is full - Mailing list pgsql-hackers

From Andrew Chernow
Subject Re: Listen / Notify - what to do when the queue is full
Date
Msg-id 4B049EBA.6010207@esilo.com
Whole thread Raw
In response to Re: Listen / Notify - what to do when the queue is full  (Greg Stark <gsstark@mit.edu>)
List 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 by date:

Previous
From: James Pye
Date:
Subject: Re: Python 3.1 support
Next
From: Josh Berkus
Date:
Subject: Re: Listen / Notify - what to do when the queue is full