Re: Transaction ID in Triggers - Mailing list pgsql-novice

From David Saracini
Subject Re: Transaction ID in Triggers
Date
Msg-id 120016.15963.qm@web180315.mail.gq1.yahoo.com
Whole thread Raw
In response to Re: Transaction ID in Triggers  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
Boy... I had the screwed up!  :) Thanks for explaining.

Regards,

David


From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Saracini <dsaracini@yahoo.com>
Cc: pgsql novice forum <pgsql-novice@postgresql.org>
Sent: Friday, August 14, 2009 1:38:20 PM
Subject: Re: [NOVICE] Transaction ID in Triggers

David Saracini <dsaracini@yahoo.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

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Transaction ID in Triggers
Next
From: "P. Staring"
Date:
Subject: Having trouble installing on Vista