Duplicate Key Error Message Very Vague - Mailing list pgsql-admin

From Campbell, Lance
Subject Duplicate Key Error Message Very Vague
Date
Msg-id B10E6810AC2A2F4EA7550D072CDE8760CDDCA8@SAB-FENWICK.sab.uiuc.edu
Whole thread Raw
List pgsql-admin

Duplicate Key Error Message Very Vague,

 

I got the following message when doing an update:

 

duplicate key violates unique constraint "user_role_pkey"

 

Is there a reason PostgreSQL could not be modified to tell us the values of the keys so we could then trouble shoot the issue?

 

Example:  If the primary field was field1 and field2 then the error message would say:

 

duplicate key violates unique constraint "user_role_pkey", values of 123, ‘abcd’ were used.

 

Thanks,

 

Lance Campbell

Project Manager/Software Architect

Web Services at Public Affairs

University of Illinois

217.333.0382

http://webservices.uiuc.edu

 

pgsql-admin by date:

Previous
From: "Tena Sakai"
Date:
Subject: Re: Handling large volumes of data
Next
From: yawei hou
Date:
Subject: CREATE LANGUAGE cannot load library ERROR!