Re: oid's and primary keys on insert

Поиск
Список
Период
Сортировка
Искать
От
Jean-Luc Lachance
Тема
Re: oid's and primary keys on insert
Дата
Msg-id
3D5433E6.17416A6C@nsd.ca
Список
Дерево обсуждения
Re: oid's and primary keys on insert Joe Conway <mail@joeconway.com>
Re: oid's and primary keys on insert Rob Brown-Bayliss <rob@zoism.org>
Re: oid's and primary keys on insert Andrew Sullivan <andrew@libertyrms.info>
Joe Conway wrote:


> There is at least one good reason to not create oids on user tables:
> since they are generated from one source for the entire PostgreSQL
> cluster, in a large installation they can roll-over at 4 billion. By
> using them for system tables only, the concern of roll-over effectively
> goes away.
> 
> There have been discussions of making per table oid generators but it
> doesn't look like that will happen for 7.3. I think going to 8 byte oids
> has been rejected to due to the performance hit and additional per row
> overhead.
> 

We could have one sequence of OID (4 bytes) per table and a prefix (4
bytes) for a specific table in the system table.  So we could have an
effective OID of 8 bytes and still keep the benefit of system wide
unique OID.

JLL
В списке pgsql-general по дате отправления
От: Rob Brown-Bayliss
Дата:
От: Nigel J. Andrews
Дата:
FAQ