Removing special case OID generation

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Removing special case OID generation
Дата
Msg-id CA+U5nMJLc5KJJhqrmQuSjHtJcOGUNcUBkyubov4Zc6EBwQRJEg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Removing special case OID generation  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: Removing special case OID generation  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Recent events have made me notice the OID handling.

AFAICS, OIDs are just a sequence with a max value that fits in a uint.

So ISTM that we should just strip out the OID handling code and just
have a system sequence defined like this

CREATE SEQUENCE _pg_oid  MINVALUE 0  MAXVALUE 4294967296  CACHE 8192  CYCLE;

Which would then make it easier to have a sequence for each toast
table and a sequence for lobs.

Not sure its important now, but maybe it will reduce the size of the
executable and avoid oid-specific bugs.

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: incorrect handling of the timeout in pg_receivexlog
Следующее
От: David Fetter
Дата:
Сообщение: Re: semi-PoC: kNN-gist for cubes