Re: lastOverflowedXid does not handle transaction ID wraparound - Mailing list pgsql-hackers

From Dmitry Dolgov
Subject Re: lastOverflowedXid does not handle transaction ID wraparound
Date
Msg-id 20211020114833.63x7yl2iqri36w5p@localhost
Whole thread Raw
In response to Re: lastOverflowedXid does not handle transaction ID wraparound  (Andrey Borodin <x4mmm@yandex-team.ru>)
Responses Re: lastOverflowedXid does not handle transaction ID wraparound
List pgsql-hackers
> On Wed, Oct 20, 2021 at 04:00:35PM +0500, Andrey Borodin wrote:
> > 17 окт. 2021 г., в 21:55, Dmitry Dolgov <9erthalion6@gmail.com> написал(а):
> > I wonder what would be side
> > effects of clearing it when the snapshot is not suboverfloved anymore?
>
> I think we should just invalidate lastOverflowedXid on every XLOG_RUNNING_XACTS if subxid_overflow == false. I can't
finda reason not to do so.
 

From what I understand that was actually the case, lastOverflowedXid was
set to InvalidTransactionId in ProcArrayApplyRecoveryInfo if
subxid_overflow wasn't set. Looks like 10b7c686e52a6d1bb has changed it,
to what I didn't pay attention originally.



pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: [PATCH] Fix memory corruption in pg_shdepend.c
Next
From: Daniel Gustafsson
Date:
Subject: Re: [PATCH] Prefer getenv("HOME") to find the UNIX home directory