Re: Prepared transaction releasing locks before deregistering its GID - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Prepared transaction releasing locks before deregistering its GID
Date
Msg-id 20190219095759.GW15532@paquier.xyz
Whole thread Raw
In response to Re: Prepared transaction releasing locks before deregistering its GID  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
List pgsql-hackers
On Tue, Feb 19, 2019 at 12:26:04PM +0300, Konstantin Knizhnik wrote:
> May be I missed something, but why it is not possible just to move removing
> 2PC GXact before releasing transaction locks:

Because we need to keep the 2PC reference in shared memory when
releasing the locks before removing the physical file.  The 2PC test
suite for recovery has good coverage, and I imagine that these blow up
with your suggestion (no time to test now, please see
009_twophase.pl).
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: "Higuchi, Daisuke"
Date:
Subject: RE: [Bug Fix] ECPG: could not use set xxx to default statement
Next
From: Oleksii Kliukin
Date:
Subject: Re: Prepared transaction releasing locks before deregistering its GID