Re: [HACKERS] [PATCH] Fix minor race in commit_ts SLRU truncation vs lookups - Mailing list pgsql-hackers

From Craig Ringer
Subject Re: [HACKERS] [PATCH] Fix minor race in commit_ts SLRU truncation vs lookups
Date
Msg-id CAMsr+YFdMPWYy_yzLpSDn=pbJ=YoYH9hKX34Bqkjk_kVKA+d1A@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] [PATCH] Fix minor race in commit_ts SLRU truncation vslookups  (Petr Jelinek <petr.jelinek@2ndquadrant.com>)
Responses Re: [HACKERS] [PATCH] Fix minor race in commit_ts SLRU truncation vs lookups
List pgsql-hackers
On 28 December 2016 at 22:16, Petr Jelinek <petr.jelinek@2ndquadrant.com> wrote:

> About the patch, it looks good to me for master with the minor exception
> that:
>> +             appendStringInfo(buf, "pageno %d, xid %u",
>> +                     trunc.pageno, trunc.oldestXid);
>
> This should probably say oldestXid instead of xid in the text description.

Agreed.

> About back-patching, I wonder if standby could be modified to move
> oldestXid based on pageno reverse calculation, but it's going to be
> slightly ugly.

Not worth it IMO.

-- Craig Ringer                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: [HACKERS] proposal: session server side variables
Next
From: Fabien COELHO
Date:
Subject: Re: [HACKERS] proposal: session server side variables