Cannot insert a duplicate key into unique index?

From: "Brian Johnson" <bjohnson(at)johnson-engineering(dot)ca>
To: pgsql-novice(at)postgresql(dot)org
Subject: Cannot insert a duplicate key into unique index?
Date: 2003-07-16 12:22:36
Message-ID: 20030716.1nE.51550700@192.168.0.1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

I keep getting this error from a complex, multi-table php app

postgres[4513]: [4] ERROR: Cannot insert a duplicate key into unique index
lang_pkey

To help me find the problem, is there a way to get logging to show what table the
error is caused by or what SQL code is causing it?

Also, from researching this problem on the internet, it look slike the unique index
would normally have three segments table_field_key .. any idea why this one is
listed differently?

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2003-07-16 14:40:21 Re: Problem with psql interface
Previous Message paul butler 2003-07-16 06:24:09 Re: Anyone used pgHoster.com?