Re: Making pgsql error messages more developers' friendly. - Mailing list pgsql-general

From Rajesh Kumar Mallah
Subject Re: Making pgsql error messages more developers' friendly.
Date
Msg-id 200306271240.45653.mallah@trade-india.com
Whole thread Raw
In response to Re: Making pgsql error messages more developers' friendly.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Friday 27 Jun 2003 12:14 pm, Tom Lane wrote:
> Rajesh Kumar Mallah <mallah@trade-india.com> writes:
> > Shudnt'  messages like
> > ERROR:  value too long for type character varying(5)
> > Indicate which column and table the server is talking about .
>
> Send a patch ;-)
>

I wish i could ;-)


> This is not that easy to do: the code that implements the constraint
> does not know what it is being applied to.  In the general case it
> cannot know, because there may be no specific table/column it's being
> applied to --- consider "SELECT 'foobar'::char(5)".  But if you have
> an idea how to give a more-specific error message when possible,
> let's see some code.
>
> (Possible plan: the recently-added error context mechanism might
> be able to do something for this...)

Thanks for explaining.
PostgreSQL already exceeds our expectations in the things
which really matters.


>
>             regards, tom lane

--
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.

pgsql-general by date:

Previous
From: "Nigel J. Andrews"
Date:
Subject: Re: Making pgsql error messages more developers' friendly.
Next
From: Tom Lane
Date:
Subject: Re: Making pgsql error messages more developers' friendly.