Re: Transaction ID in Triggers

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Saracini <dsaracini(at)yahoo(dot)com>
Cc: pgsql novice forum <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Transaction ID in Triggers
Date: 2009-08-14 20:38:20
Message-ID: 28041.1250282300@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

David Saracini <dsaracini(at)yahoo(dot)com> writes:
> So, if I understand it... then, txid_current returns the xmax in the
> high-order and the xmin in the low-order. Correct?

No. txid_current returns a monotonically increasing version of the
transaction counter --- its high order bits are an "epoch" counter
that increases whenever the 32-bit xid wraps around.

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message David Saracini 2009-08-14 20:41:26 Re: Transaction ID in Triggers
Previous Message David Saracini 2009-08-14 20:31:21 Re: Transaction ID in Triggers