Re: OID's - Mailing list pgsql-general

From Stephan Szabo
Subject Re: OID's
Date
Msg-id 20041023090828.W55463@megazone.bigpanda.com
Whole thread Raw
In response to Re: OID's  ("Leen Besselink" <leen@wirehub.nl>)
List pgsql-general
On Sat, 23 Oct 2004, Leen Besselink wrote:

> Eddy Macnaghten zei:
> > I think you are correct in not using OIDs, as, firstly, as you point out
> > they are optional, also that they are not neccessarily unique.
> >
>
> I'm sorry Eddy, but you most be mistaken:
>
> Every row in POSTGRESQL is assigned a unique, normally invisible number
> called an object identification number (OID). When the software is
> initialized with initdb , 12.1 a counter is created and set to
> approximately seventeen-thousand. The counter is used to uniquely number
> every row. Although databases may be created and destroyed, the counter
> continues to increase.
>
> http://www.postgresql.org/docs/aw_pgsql_book/node71.html

Actually it's the book that's mistaken. The counter can roll over, and
will on large databases (oids are only 4 bytes).


pgsql-general by date:

Previous
From: Oliver Elphick
Date:
Subject: Re: Slony-I 1.0.4 Released
Next
From: Oliver Elphick
Date:
Subject: Re: OID's