Re: Exposing the Xact commit order to the user

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jan Wieck <JanWieck(at)Yahoo(dot)com>
Cc: Greg Sabino Mullane <greg(at)turnstep(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Exposing the Xact commit order to the user
Date: 2010-05-25 20:16:08
Message-ID: 28952.1274818568@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jan Wieck <JanWieck(at)Yahoo(dot)com> writes:
>> No, I meant how will the *function* know, if a superuser and/or some
>> background process can purge records at any time?

> The data contains timestamps which are supposedly taken in commit order.

You can *not* rely on the commit timestamps to be in exact order.
(Perhaps approximate ordering is good enough for what you want here,
but just be careful to not fall into the trap of assuming that they're
exactly ordered.)

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2010-05-25 20:16:30 Re: Synchronization levels in SR
Previous Message Joseph Adams 2010-05-25 20:11:08 Re: Fwd: Hiding data in postgresql