Re: "xmin" system column

From: Christian Kratzer <ck-lists(at)cksoft(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: "xmin" system column
Date: 2006-01-27 10:18:23
Message-ID: 20060127111619.U76989@vesihiisi.cksoft.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

On Thu, 26 Jan 2006, Eric B. Ridge wrote:
<snip/>
> <long pause>
>
> hahaha, *blush*. I could just use "now()", right? pg8.1 docs say that
> now()/CURRENT_TIMESTAMP "return the start time of the current transaction;
> their values do not change during the transaction". I could use a composite
> of (now(), GetTopTransctionId()) to assume batch uniqueness.

Or use a touple of (now(), pg_backend_pid()) for this kind of stuff.
pg_backend_pid() should sufficiently disambiguate now() to make obove
touple unique.

Greetings
Christian

--
Christian Kratzer ck(at)cksoft(dot)de
CK Software GmbH http://www.cksoft.de/
Phone: +49 7452 889 135 Fax: +49 7452 889 136

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sergey Karin 2006-01-27 10:28:05 question about large databases
Previous Message Stephan Vollmer 2006-01-27 09:53:19 Error: "could not read from statistics collector pipe"