Re: BUG #2393: update fails with unique constraint violation

Поиск
Список
Период
Сортировка
От Vlad ROMASCANU
Тема Re: BUG #2393: update fails with unique constraint violation
Дата
Msg-id 00b601c7d5e7$baed1610$395930a4@eemea.ericsson.se
обсуждение исходный текст
Ответ на BUG #2393: update fails with unique constraint violation  ("Laurence Dawson" <larry.dawson@vanderbilt.edu>)
Список pgsql-bugs
You may want to suggest to the devs to extend the "UPDATE" syntax with
"ORDER BY"? such that:

update rumple.directory
 set right_visit_id = right_visit_id + 2
 where right_visit_id >= parent_right
ORDER BY right_visit_id DESC;

...would work by enforcing a certain update order.  And index scan is
performed anyway because of the 'where' clause, might as well do it in
order. :)

MySQL does it like that AFAIK.

V.

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

Предыдущее
От: "William Leite Araújo"
Дата:
Сообщение: Re: BUG #3506: to_number silently ignore characters
Следующее
От: Peter Koczan
Дата:
Сообщение: Re: BUG #3504: Some listening sessions never return from writing, problems ensue