Re: A 2 phase commit weirdness - Mailing list pgsql-hackers

From Tom Lane
Subject Re: A 2 phase commit weirdness
Date
Msg-id 10379.1117163368@sss.pgh.pa.us
Whole thread Raw
In response to A 2 phase commit weirdness  (Alvaro Herrera <alvherre@surnet.cl>)
Responses Re: A 2 phase commit weirdness  (Heikki Linnakangas <hlinnaka@iki.fi>)
List 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 by date:

Previous
From: Alvaro Herrera
Date:
Subject: A 2 phase commit weirdness
Next
From: "Qingqing Zhou"
Date:
Subject: Re: Can we simplify win32 threading code