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

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 (view raw or flat)
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

pgsql-novice by date

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

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