Merge copies of converting an XID to a FullTransactionId.
Noah Misch <noah@leadboat.com>
Merge copies of converting an XID to a FullTransactionId. Assume twophase.c is the performance-sensitive caller, and preserve its choice of unlikely() branch hint. Add some retrospective rationale for that choice. Back-patch to v17, for the next commit to use it. Reviewed (in earlier versions) by Michael Paquier. Discussion: https://postgr.es/m/17821-dd8c334263399284@postgresql.org Discussion: https://postgr.es/m/20250116010051.f3.nmisch@google.com
Files
| Path | Change | +/− |
|---|---|---|
| contrib/amcheck/verify_heapam.c | modified | +3 −1 |
| src/backend/access/transam/twophase.c | modified | +5 −21 |
| src/backend/access/transam/xlogreader.c | modified | +2 −16 |
| src/backend/utils/adt/xid8funcs.c | modified | +24 −55 |
| src/include/access/transam.h | modified | +43 −0 |
Discussion
- Re: An improvement of ProcessTwoPhaseBuffer logic 22 messages · 2024-12-25 → 2025-01-30
- BUG #17821: Assertion failed in heap_update() due to heap pruning 13 messages · 2023-03-02 → 2025-04-02