Merge copies of converting an XID to a FullTransactionId.

Noah Misch <noah@leadboat.com>

Commit: 81772a495ec98d36eabf5cc294e7031a9545c5c1
Author: Noah Misch <noah@leadboat.com>
Date: 2025-01-25T19:28:14Z
Releases: 18.0
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

Discussion