Re: Add 64-bit XIDs into PostgreSQL 15
Zhang Mingli <zmlpostgres@gmail.com>
From: Zhang Mingli <zmlpostgres@gmail.com>
To: Dilip Kumar <dilipbalaut@gmail.com>, Maxim Orlov
<orlovmg@gmail.com>
Cc: Pavel Borisov <pashkin.elfe@gmail.com>, Aleksander Alekseev
<aleksander@timescale.com>, Postgres hackers
<pgsql-hackers@lists.postgresql.org>, Justin Pryzby
<pryzby@telsasoft.com>, Stephen Frost <sfrost@snowman.net>, Alexander
Korotkov <aekorotkov@gmail.com>, Andres Freund <andres@anarazel.de>,
Ilya Anfimov <ilan@tzirechnoy.com>
Date: 2022-09-20T08:15:40Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Add SLRU tests for 64-bit page case
- a60b8a58f435 17.0 landed
-
Make use FullTransactionId in 2PC filenames
- 5a1dfde8334b 17.0 landed
-
Use larger segment file names for pg_notify
- 2cdf131c46e6 17.0 landed
-
Index SLRUs by 64-bit integers rather than by 32-bit integers
- 4ed8f0913bfd 17.0 landed
Hi,
With these patches, it seems that we don’t need to handle wraparound in
GetNextLocalTransactionId() too, as LocalTransactionId is unit64 now.
```
LocalTransactionId
GetNextLocalTransactionId(void)
{
LocalTransactionId result;
/* loop to avoid returning InvalidLocalTransactionId at wraparound */
do
{
result = nextLocalTransactionId++;
} while (!LocalTransactionIdIsValid(result));
return result;
}
```
Regards,
Zhang Mingli