Re: A 2 phase commit weirdness

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: A 2 phase commit weirdness
Дата
Msg-id 10379.1117163368@sss.pgh.pa.us
обсуждение исходный текст
Ответ на A 2 phase commit weirdness  (Alvaro Herrera <alvherre@surnet.cl>)
Ответы Re: A 2 phase commit weirdness  (Heikki Linnakangas <hlinnaka@iki.fi>)
Список pgsql-hackers
Alvaro Herrera <alvherre@surnet.cl> writes:
> I'm wondering what should happen at prepare time so that "my own cache"
> is correct.

Good point.  As far as the local caches are concerned, we probably have
to make it look like the transaction rolled back.  I think Heikki
already had code in there to send the right inval messages when the
prepared transaction ultimately commits ... but we'll have to check that
that sequence does the right things ...

> Do I need to send the inval messages to me?  Is this even
> possible?

inval.c is less than readable, isn't it :-(  But yes, and yes.
        regards, tom lane


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: A 2 phase commit weirdness
Следующее
От: "Qingqing Zhou"
Дата:
Сообщение: Re: Can we simplify win32 threading code