Changing ids conflicting with serial values?

Поиск
Список
Период
Сортировка
От Steven Brown
Тема Changing ids conflicting with serial values?
Дата
Msg-id dkbnfi$7g5$1@sea.gmane.org
обсуждение исходный текст
Ответы Re: Changing ids conflicting with serial values?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Changing ids conflicting with serial values?  ("Joshua D. Drake" <jd@commandprompt.com>)
Список pgsql-general
When I change an id (primary key serial) in a table, the next value
returned by the sequence for the id can conflict with that id (e.g.,
change the id to be id + 1).  MySQL seems to handle this transparently
by skipping conflicting values, but with PostgreSQL I get primary key
conflicts.  It seems rather bad if a user can modify an id in a row and
cause failures for all future inserts - it's just too fragile.  What's
the proper way to handle this in PostgreSQL?

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

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: Data Dictionary generator?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Changing ids conflicting with serial values?