Update violating constraint - Mailing list pgsql-general

From Naz Gassiep
Subject Update violating constraint
Date
Msg-id 46395E8C.4020200@mira.net
Whole thread Raw
Responses Re: Update violating constraint
Re: Update violating constraint
List 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 by date:

Previous
From: "Islam Hegazy"
Date:
Subject: C functions under windows
Next
From: Michael Glaesemann
Date:
Subject: Re: Update violating constraint