Re: XID formatting and SLRU refactorings (was: Add 64-bit XIDs into PostgreSQL 15) - Mailing list pgsql-hackers

From Maxim Orlov
Subject Re: XID formatting and SLRU refactorings (was: Add 64-bit XIDs into PostgreSQL 15)
Date
Msg-id CACG=ezaN1FvOrfy1kuq0T4exkkNQ5JZ3pwVWrU0Dn645AKNrwg@mail.gmail.com
Whole thread Raw
In response to Re: XID formatting and SLRU refactorings (was: Add 64-bit XIDs into PostgreSQL 15)  (Aleksander Alekseev <aleksander@timescale.com>)
Responses Re: XID formatting and SLRU refactorings (was: Add 64-bit XIDs into PostgreSQL 15)  (Aleksander Alekseev <aleksander@timescale.com>)
List pgsql-hackers
Hi!

As suggested before by Heikki Linnakangas, I've added a patch for making 2PC transaction state 64-bit.
At first, my intention was to rebuild all twophase interface to use FullTransactionId. But doing this in a proper
manner would lead to switching from TransactionId to FullTransactionId in PGPROC and patch become too
big to handle here.

So I decided to keep it simple for now and use wrap logic trick and calc FullTransactionId on current epoch,
since the span of active xids cannot exceed one epoch at any given time.
Patches 1 and 2 are the same as above.

--
Best regards,
Maxim Orlov.
Attachment

pgsql-hackers by date:

Previous
From: Frédéric Yhuel
Date:
Subject: Re: Allow parallel plan for referential integrity checks?
Next
From: Maxim Orlov
Date:
Subject: Re: Add SHELL_EXIT_CODE to psql