Re: Use of OIDS as primary keys

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Use of OIDS as primary keys
Дата
Msg-id 23545.1021356172@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Use of OIDS as primary keys  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-general
Martijn van Oosterhout <kleptog@svana.org> writes:
> Do they actually save spaces (consider alignment issues and such)?

WITHOUT OIDS doesn't currently save any space --- the tuple header
layout is the same either way.  It should save a few microseconds
per row inserted (since you don't have to generate an OID) but
that's about it.

The main reason for inventing the feature was to postpone OID-counter
wraparound in large installations.  Wraparound isn't fatal, but can
be annoying --- for example, pg_dump may get confused about the best
order to dump tables in.

            regards, tom lane

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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Use of OIDS as primary keys
Следующее
От: Thomas Beutin
Дата:
Сообщение: Re: Fast statement but slow function