Re: LocalTransactionId vs txid_current

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: LocalTransactionId vs txid_current
Дата
Msg-id 29536.1571928359@sss.pgh.pa.us
обсуждение исходный текст
Ответ на LocalTransactionId vs txid_current  (Luca Ferrari <fluca1978@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: A very puzzling backup/restore problem
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Having more than one constraint trigger on a table