Re: Add 64-bit XIDs into PostgreSQL 15

Evgeny <evorop@gmail.com>

From: Evgeny <evorop@gmail.com>
To: pgsql-hackers@lists.postgresql.org
Date: 2024-12-16T08:38:17Z
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 →
  1. Add SLRU tests for 64-bit page case

  2. Make use FullTransactionId in 2PC filenames

  3. Use larger segment file names for pg_notify

  4. Index SLRUs by 64-bit integers rather than by 32-bit integers

Attachments

Hello hackers!
There are several upgrades in the xid64 patch.
1. Refactored functions HeapTupleCopyRawXidsFromPage, 
HeapTupleCopyXidsFromPage - repeating part of these functions withdrawn 
into the separated HeapTupleCopyXidsFromPage_Basis in order to avoid 
code duplication.
2. In the HeapTupleCopyXidsFromPage_Basis, the check, whether the tuple 
does not belong to the page, has been implemented. It is quite a rough 
check based upon checking addresses of the page, the tuple and the 
special, but it is sufficient to detect the problem.
3. Simplified the signature of the convert_page function. Rejected the 
passing of the Page parameter - it is calculated inside the convert_page 
function now.

Base: current master (39240bcad56, 2024-12-16).

Best regards,
Evgeny Voropaev,
Tantor Labs LLC.