Update violating constraint

Поиск
Список
Период
Сортировка
От Naz Gassiep
Тема Update violating constraint
Дата
Msg-id 46395E8C.4020200@mira.net
обсуждение исходный текст
Ответы Re: Update violating constraint  (Michael Glaesemann <grzm@seespotcode.net>)
Re: Update violating constraint  (Alban Hertroys <alban@magproductions.nl>)
Список pgsql-general
Hi,
    I'm trying to do an update on a table that has a unique constraint
on the field, I need to update the table by setting field = field+1
however if this does not perform the updates on the table in a proper
order (from last to first) then the update will cause a violation of the
index *during* the update even though the table would be consistent
after the update completes. So the update fails. How do I get around
this without removing the constraint?
- Naz.

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

Предыдущее
От: "Islam Hegazy"
Дата:
Сообщение: C functions under windows
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: Update violating constraint