Re: POC: make mxidoff 64 bits - Mailing list pgsql-hackers

From Maxim Orlov
Subject Re: POC: make mxidoff 64 bits
Date
Msg-id CACG=ezbDgXvgNcxMmiCNZR1g95CBT+Y2rVhZWa_1SuOWeFREDw@mail.gmail.com
Whole thread Raw
In response to Re: POC: make mxidoff 64 bits  (Heikki Linnakangas <hlinnaka@iki.fi>)
List pgsql-hackers

On Wed, 19 Nov 2025 at 19:20, Heikki Linnakangas <hlinnaka@iki.fi> wrote:

I think those recipes need to be adjusted for 64-bit offsets.
Yes, we need to do it.

Sorry if this is too obvious, but with 32-bit offsets, we get:
SLRU_PAGES_PER_SEGMENT * BLKSZ / sizeof(MXOff) =
    32 * 8192 / 4 = 65,536 mxoff per segment.
   
Now, with 64-bits offsets, we should have half as much.

--
Best regards,
Maxim Orlov.

pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: another autovacuum scheduling thread
Next
From: Sami Imseih
Date:
Subject: Re: another autovacuum scheduling thread