Re: a few questions (and doubts) about xid - Mailing list pgsql-general

From Gregory Stark
Subject Re: a few questions (and doubts) about xid
Date
Msg-id 87wswn1t08.fsf@oxford.xeocode.com
Whole thread Raw
In response to Re: a few questions (and doubts) about xid  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-general
"Alvaro Herrera" <alvherre@commandprompt.com> writes:

> Gregory Stark wrote:
>
>> > Just for confirmation: the relfrozenxid of a fresh table is the xid of the
>> > transaction that created it, isn't it?
>>
>> Yes, easily enough checked:
>>
>> postgres=# create table xyz (i integer);
>> CREATE TABLE
>> postgres=# select xmin,relfrozenxid from pg_class where relname = 'xyz';
>
> No it's not.  It's the XID of the earliest transaction that was open at
> the time you created the table (known as RecentXid).

Mea culpa. That's a pretty obvious error too; I should have thought more
before sending that message.

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com


pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: a few questions (and doubts) about xid
Next
From: Richard Huxton
Date:
Subject: Re: Replicating db structure changes