pgsql: Merge copies of converting an XID to a FullTransactionId.

2025-01-25 Thread Noah Misch
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)

pgsql: Merge copies of converting an XID to a FullTransactionId.

2025-01-25 Thread Noah Misch
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)