Re: Duplicate Key Violates Unique Contraint when Updating a table - Mailing list pgsql-general

From Ragnar
Subject Re: Duplicate Key Violates Unique Contraint when Updating a table
Date
Msg-id 1182679516.5953.241.camel@localhost.localdomain
Whole thread Raw
In response to Duplicate Key Violates Unique Contraint when Updating a table  ("carter ck" <carterck32@hotmail.com>)
Responses Re: Duplicate Key Violates Unique Contraint whenUpdating a table  ("carter ck" <carterck32@hotmail.com>)
List pgsql-general
On sun, 2007-06-24 at 16:55 +0800, carter ck wrote:
> I am experiencing thgis problem since this morning. I seldom heard about
> unique key constraint violation to happen when updating a table.
>
> It happens to 1 or few records at early stage, but then to all.
>
> My updating command is as following:
>
> update mytable set my_status='Y' where myid='ABC123567778';
>
> Can anyone help? All helps and solutions are appreciated.

sounds like you have a UNIQUE constraint involving the column
"my_status".

did you recently create a new index on this table?

what does psql say to:
\d mytable


gnari



pgsql-general by date:

Previous
From: danmcb
Date:
Subject: Re: finding items with 0 rels for a 0 to many relationship
Next
From: danmcb
Date:
Subject: how to implement unusual constraint