nextval() on serial using old, existing value on insert?

Поиск
Список
Период
Сортировка
От Wells Oliver
Тема nextval() on serial using old, existing value on insert?
Дата
Msg-id CAOC+FBWAzy8MDbwE2XJGsi8eV=QCuSS8orgAEdyOLr37_Z4ByQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: nextval() on serial using old, existing value on insert?
Re: nextval() on serial using old, existing value on insert?
Список pgsql-admin
I have a simple table with a given column defined like so:

 common_key    | integer |           | not null | nextval('alias.identity_common_key_seq'::regclass)  | plain


Very very very infrequently, on an INSERT where this column is not specified, this column will be assigned a value that already exists in the table, versus the next presumably unused value in the sequence. I cannot figure this out. Is there any reason why this might be the case?

--

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

Предыдущее
От: James Fraley
Дата:
Сообщение: Re: Index recreation details with REINDEX TABLE CONCURRENTLY
Следующее
От: Keith
Дата:
Сообщение: Re: nextval() on serial using old, existing value on insert?