Re: LISTEN/NOTIFY and notification timing guarantees - Mailing list pgsql-hackers

From Tom Lane
Subject Re: LISTEN/NOTIFY and notification timing guarantees
Date
Msg-id 14895.1266354782@sss.pgh.pa.us
Whole thread Raw
In response to Re: LISTEN/NOTIFY and notification timing guarantees  (Jeff Davis <pgsql@j-davis.com>)
List pgsql-hackers
Jeff Davis <pgsql@j-davis.com> writes:
> On Tue, 2010-02-16 at 10:38 -0500, Tom Lane wrote:
>> 2. Add an extra lock to serialize writers to the queue, so that messages
>> are guaranteed to be added to the queue in commit order.

> I assume this is a heavyweight lock, correct?

Yeah, that seems the easiest way to do it.  I think an LWLock could be
made to work, but releasing it on error might be a bit funky.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: psql 8.4 \c repeats version banner
Next
From: Tom Lane
Date:
Subject: Re: LISTEN/NOTIFY and notification timing guarantees