Re: changes sequences to unique

Поиск
Список
Период
Сортировка
От Rene Pijlman
Тема Re: changes sequences to unique
Дата
Msg-id 907tht4vrv0bp2eiqfp3a1hk46gco33pkr@4ax.com
обсуждение исходный текст
Ответ на Re: changes sequences to unique  (Stefan Huber <schweinsaug@crosswinds.net>)
Список pgsql-admin
schweinsaug@crosswinds.net (Stefan Huber) schreef:
>>Huh?  nextval() should always produce unique values (unless the sequence
>>wraps around, of course).
>
>What about explicitly overruling a sequence by INSERTing a specific value,
>when it is not a primary key or defined as serial, but a manual sequence?

Then the sequence will still produce unique values. Its just the
database column that contains a duplicate :-)

--
Vriendelijke groet,
René Pijlman <rpijlman@spamcop.net>

Wat wil jij leren?
http://www.leren.nl/

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

Предыдущее
От: 高豪良\(Danny\)
Дата:
Сообщение: Rserv install problem
Следующее
От: "Andy Jenks"
Дата:
Сообщение: postmaster successfully started?