Re: OIDS - Mailing list pgsql-general

From Neil Conway
Subject Re: OIDS
Date
Msg-id 42B75CDD.2040507@samurai.com
Whole thread Raw
In response to Re: OIDS  (Tino Wildenhain <tino@wildenhain.de>)
List pgsql-general
Tino Wildenhain wrote:
> Google or your favourite search engine helps :-)
>
> http://www.postgresql.org/files/documentation/books/aw_pgsql/node71.html
>
> is among the first results.

Unfortunately those docs are quite out of date. This page is better:

http://developer.postgresql.org/docs/postgres/datatype-oid.html

(This describes the behavior that will be the default in 8.1)

Specifically:

Object identifiers (OIDs) are used internally by PostgreSQL as primary
keys for various system tables.... The oid type is currently implemented
as an unsigned four-byte integer. Therefore, it is not large enough to
provide database-wide uniqueness in large databases, or even in large
individual tables. So, using a user-created table's OID column as a
primary key is discouraged. OIDs are best used only for references to
system tables.

-Neil


pgsql-general by date:

Previous
From: Teunis Peters
Date:
Subject: users, address record restrictions
Next
From: "Jason Tesser"
Date:
Subject: problems with types after update to 8.0