Re: LocalTransactionId vs txid_current

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Luca Ferrari <fluca1978(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: LocalTransactionId vs txid_current
Date: 2019-10-24 14:45:59
Message-ID: 29536.1571928359@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Luca Ferrari <fluca1978(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2019-10-24 14:59:42 Re: Having more than one constraint trigger on a table
Previous Message Adrian Klaver 2019-10-24 14:40:29 Re: A very puzzling backup/restore problem