Re: LocalTransactionId vs txid_current - Mailing list pgsql-general

From Tom Lane
Subject Re: LocalTransactionId vs txid_current
Date
Msg-id 29536.1571928359@sss.pgh.pa.us
Whole thread Raw
In response to LocalTransactionId vs txid_current  (Luca Ferrari <fluca1978@gmail.com>)
List pgsql-general
Luca Ferrari <fluca1978@gmail.com> 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



pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: A very puzzling backup/restore problem
Next
From: Adrian Klaver
Date:
Subject: Re: Having more than one constraint trigger on a table