Re: Proposed patch for LISTEN/NOTIFY race condition - Mailing list pgsql-patches

From Alvaro Herrera
Subject Re: Proposed patch for LISTEN/NOTIFY race condition
Date
Msg-id 20080312131233.GD4926@alvh.no-ip.org
Whole thread Raw
In response to Proposed patch for LISTEN/NOTIFY race condition  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Proposed patch for LISTEN/NOTIFY race condition  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Tom Lane wrote:

> The patch disallows LISTEN/NOTIFY in a prepared transaction, and there
> is also a side effect on whether a transaction can see entries in
> pg_listener for its own uncommitted LISTEN commands.

I wonder if it would've been easier to make NOTIFY use SnapshotDirty to
examine pg_listener, thus causing it to see the uncommitted rows.  Would
that work at all?

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [BUGS] BUG #3681: fillers are NULL in pgbench
Next
From: "Heikki Linnakangas"
Date:
Subject: Re: [PERFORM] Very slow (2 tuples/second) sequential scan after bulk insert; speed returns to ~500 tuples/second after commit