Unusual PK contraint error

Started by Jasbinder Baliabout 19 years ago3 messagesgeneral
Jump to latest
#1Jasbinder Bali
jsbali@gmail.com

Hi

I have a compostie primary key in my table comprising of 3 fields.
My systems tries to enter records in this table for which the combination of
these 3 fields is not there at all

The new record gets inserted but with the following error being displayed on
console

DBD::Pg::st execute failed: ERROR: duplicate key violates unique constraint
"pk_verify_mx"

I don't know whats goin on. Records get inserted but this duplicate key
error is being thrown

~Jas

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Jasbinder Bali (#1)
Re: Unusual PK contraint error

"Jasbinder Singh Bali" <jsbali@gmail.com> writes:

DBD::Pg::st execute failed: ERROR: duplicate key violates unique constraint
"pk_verify_mx"
I don't know whats goin on.

Corrupt index maybe? Does REINDEXing the pk index help?

regards, tom lane

#3Jasbinder Bali
jsbali@gmail.com
In reply to: Tom Lane (#2)
Re: Unusual PK contraint error

how do u do reindexing?

Show quoted text

On 3/31/07, Tom Lane <tgl@sss.pgh.pa.us> wrote:

"Jasbinder Singh Bali" <jsbali@gmail.com> writes:

DBD::Pg::st execute failed: ERROR: duplicate key violates unique

constraint

"pk_verify_mx"
I don't know whats goin on.

Corrupt index maybe? Does REINDEXing the pk index help?

regards, tom lane