Re: OID's....

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: OID's....
Дата
Msg-id 200105302147.f4ULlaH09463@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: OID's....  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
> >    Also, when the OID's reach the limit of an int4, if I recall correctly,
> > they simply wrap around, and things keep working unless you depend on
> > unique OID's.  Is that correct?
>
> That's the theory, anyway.  After the wrap, you could see occasional
> failures due to OID conflicts in the system catalogs --- for example, if
> you try to create a table but the assigned OID duplicates some existing
> table's OID, you'd get a can't-insert-duplicate-into-unique-index kind
> of failure.  The solution if that happens is just to try again;
> eventually you'll get an OID that doesn't conflict.  But the odds of a
> conflict like that should be very low in practice.

Seems we could avoid that by getting another oid and retrying.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

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

Предыдущее
От: "Steve Wolfe"
Дата:
Сообщение: Re: OID's....
Следующее
От: "rui zhong"
Дата:
Сообщение: Does ASSERTION constraint work ?