Re: Proposed patch for LISTEN/NOTIFY race condition

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Proposed patch for LISTEN/NOTIFY race condition
Дата
Msg-id 20080312131233.GD4926@alvh.no-ip.org
обсуждение исходный текст
Ответ на Proposed patch for LISTEN/NOTIFY race condition  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Proposed patch for LISTEN/NOTIFY race condition  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [BUGS] BUG #3681: fillers are NULL in pgbench
Следующее
От: "Heikki Linnakangas"
Дата:
Сообщение: Re: [PERFORM] Very slow (2 tuples/second) sequential scan after bulk insert; speed returns to ~500 tuples/second after commit