Re: WIP patch for latestCompletedXid method of computing snapshot xmax - Mailing list pgsql-patches

From Tom Lane
Subject Re: WIP patch for latestCompletedXid method of computing snapshot xmax
Date
Msg-id 18533.1189351373@sss.pgh.pa.us
Whole thread Raw
In response to Re: WIP patch for latestCompletedXid method of computing snapshot xmax  ("Florian G. Pflug" <fgp@phlo.org>)
Responses Re: WIP patch for latestCompletedXid method of computing snapshot xmax  ("Florian G. Pflug" <fgp@phlo.org>)
List pgsql-patches
"Florian G. Pflug" <fgp@phlo.org> writes:
> This guarantee enables a few optimizations. First, as you say in the
> comments, finding the largest xid when committing becomes trivial. But more
> important, if we can assume that the proc array xid cache is always
> sorted, we can get ride of the exclusive lock during subxact abort.

No, we can't, because subxact abort still has to advance latestCompletedXid.

            regards, tom lane

pgsql-patches by date:

Previous
From: Simon Riggs
Date:
Subject: Re: HOT patch - version 15
Next
From: "Sibte Abbas"
Date:
Subject: psql slash# command