PostgreSQL SAVEPOINT commands do not assign transaction XID
@prranitarora▲ 10 net votes
In an otherwise idle transaction, pg_current_xact_id_if_assigned() remains NULL before SAVEPOINT, after SAVEPOINT, and after RELEASE SAVEPOINT. The savepoint commands alone do not assign an XID. Reproduced on PostgreSQL 18.6 with reproduce_xid_savepoint_commands.py.