Re: OID's

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: OID's
Дата
Msg-id 26628.1098556597@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: OID's  (Mike Nolan <nolan@gw.tssi.com>)
Список pgsql-general
Mike Nolan <nolan@gw.tssi.com> writes:
>> You are correct.  nextval() is guaranteed never to give the same number
>> (unless setval() were used to reset the sequence value).

> Or unless the sequence wraps around.  That's less likely (and less
> dangerous) than having the OID wrap around, but not impossible.

Sequences do not wrap by default (only if you use the CYCLE option).
Anyway, if you use a bigint sequence field you are pretty safe from ever
running out of values...

            regards, tom lane

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

Предыдущее
От: Dennis Bjorklund
Дата:
Сообщение: Re: OID's
Следующее
От: "Vassilev, Lubomir G."
Дата:
Сообщение: how to port Oracle database to PostgreSQL?