Re: Add 64-bit XIDs into PostgreSQL 15 - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Add 64-bit XIDs into PostgreSQL 15
Date
Msg-id CA+TgmobvWPygrBnh+rptuZoAv0=6TX3ZdniWnVSKGE9z_GPLcA@mail.gmail.com
Whole thread
In response to Re: Add 64-bit XIDs into PostgreSQL 15  (Heikki Linnakangas <hlinnaka@iki.fi>)
List pgsql-hackers
On Sat, Feb 7, 2026 at 5:57 PM Heikki Linnakangas <hlinnaka@iki.fi> wrote:
> On 25/11/2025 08:12, Maxim Orlov wrote:
> > -typedef uint32 TransactionId;
> > +typedef uint64 TransactionId;
>
> I'm not sure I'm on board with this, BTW. My hunch is this'll be a much
> smaller patch if you mostly stick to 32-bit representation in memory.

We introduced FullTransactionId -- and a lot of supporting
infrastructure -- for cases where we do want 64-bit XIDs in memory, so
I would say redefining TransactionId to be the same thing makes no
sense at all. There might be more places where we want to replace
TransactionId with FullTransactionId, but flattening the two together
can't possibly be the right thing.

--
Robert Haas
EDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Changing shared_buffers without restart
Next
From: Robert Haas
Date:
Subject: Re: Add 64-bit XIDs into PostgreSQL 15