Making pgsql error messages more developers' friendly.

From: Rajesh Kumar Mallah <mallah(at)trade-india(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Making pgsql error messages more developers' friendly.
Date: 2003-06-27 06:29:39
Message-ID: 200306271159.39202.mallah@trade-india.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Folks,

Shudnt' messages like

ERROR: value too long for type character varying(5)

Indicate which column and table the server is talking about .
Without that we need to open the application source code, find the
SQL, then describe the table to find which column is varchar(5)
and if there is two columns of varchar(5) we keep wondering.

similarly when uniq indexes are violated we do not know which
key is causing it.

MySQL is better in these small things.

I think in 7.4dev fkey violation are reported better,
cant such behaviours be extened to other kind of
exceptions?

Regds
Mallah.

--
Rajesh Kumar Mallah,
Project Manager (Development)
Infocom Network Limited, New Delhi
phone: +91(11)6152172 (221) (L) ,9811255597 (M)

Visit http://www.trade-india.com ,
India's Leading B2B eMarketplace.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-06-27 06:44:44 Re: Making pgsql error messages more developers' friendly.
Previous Message Tony Grant 2003-06-27 06:00:50 Re: How many fields in a table are too many