Re: Duplicate key error when updating unique columns

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Duplicate key error when updating unique columns
Дата
в 13:11:05
Msg-id
15269.1115395850@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Duplicate key error when updating unique columns Michael Glaesemann <grzm@myrealbox.com>
Re: Duplicate key error when updating unique columns Tom Lane <tgl@sss.pgh.pa.us>
Re: Duplicate key error when updating unique columns Michael Glaesemann <grzm@myrealbox.com>
Michael Glaesemann  writes:
> I thought that the unique key would be checked at the end of the update  
> statement:

No, it's never worked that way.  Each row is checked as it is inserted.
With an example like this, you may or may not get a failure depending on
chance physical ordering of rows.

This is not per spec, and I believe we have a TODO to fix it, but a fix
is far from trivial.

			regards, tom lane
В списке pgsql-general по дате отправления
От: Andrew Sullivan
Дата:
Сообщение: Re: Slony v. DBMirror
От: Peter Wilson
Дата:
Сообщение: Re: Slony v. DBMirror
FAQ