Skip site navigation (1) Skip section navigation (2)

Re: Transaction ID in Triggers

From: David Saracini <dsaracini(at)yahoo(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql novice forum <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Transaction ID in Triggers
Date: 2009-08-14 20:41:26
Message-ID: 120016.15963.qm@web180315.mail.gq1.yahoo.com (view raw or flat)
Thread:
Lists: pgsql-novice
Boy... I had the screwed up!  :) Thanks for explaining.

Regards,

David



________________________________
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>
Sent: Friday, August 14, 2009 1:38:20 PM
Subject: Re: [NOVICE] Transaction ID in Triggers 

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

pgsql-novice by date

Next:From: P. StaringDate: 2009-08-14 21:18:40
Subject: Having trouble installing on Vista
Previous:From: Tom LaneDate: 2009-08-14 20:38:20
Subject: Re: Transaction ID in Triggers

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group