Luca Ferrari <fluca1978@xxxxxxxxx> writes: > I'm exploring DTrace, and I thought that LocalTransactionId as > described in <https://www.postgresql.org/docs/12/dynamic-trace.html> > would have a relationship with txid_current(), It does not. txid_current returns a globally valid transaction ID, while local transaction IDs are just taken from a counter within the session and have no meaning to other sessions. regards, tom lane