Re: Questions about SERIAL type

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: Questions about SERIAL type
Дата
Msg-id m3n116mpo1.fsf@belphigor.mcnaught.org
обсуждение исходный текст
Ответ на Questions about SERIAL type  (reina@nsi.edu (Tony Reina))
Список pgsql-hackers
"G. Anthony Reina" <reina@nsi.edu> writes:

> Now that I look at the CREATE SEQUENCE documentation, it appears to
> have a CYCLE flag which wraps the sequence around if it were to
> reach the MAXVALUE. Does anyone know if it wraps around to the next
> unused value? Or, if an index already exists at SERIAL value =
> MINVALUE, then will the INSERT get an error about duplicate
> insertions?

SERIAL columns get a unique index defined, so you'd get an error. 

-Doug
-- 
Let us cross over the river, and rest under the shade of the trees.  --T. J. Jackson, 1863


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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Questions about SERIAL type
Следующее
От: Ned Wolpert
Дата:
Сообщение: Re: Questions about SERIAL type