Re: Mention column name in error messages

From: Franck Verrot <franck(at)verrot(dot)fr>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Mention column name in error messages
Date: 2015-09-15 10:00:25
Message-ID: CANfkH5nTqd+w4bb85QSsGBZcmxs48xh7cutXPRO04=TzDGNWEQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Sep 15, 2015 at 7:12 AM, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
wrote:
>
> I think you need errcontext(), not errdetail(). The most important
> difference is that you can have multiple CONTEXT lines but only one
> DETAIL; I think if you attach a second errdetail(), the first one is
> overwritten.
>
>
Indeed, the first errdetail() will be overwritten. Here's another try.

Thanks again for looking at my patches!

--
Franck Verrot

Attachment Content-Type Size
0001-Report-column-for-which-type-coercion-fails.patch application/octet-stream 3.3 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message YUriy Zhuravlev 2015-09-15 10:01:10 Re: Move PinBuffer and UnpinBuffer to atomics
Previous Message YUriy Zhuravlev 2015-09-15 09:51:24 Re: Move PinBuffer and UnpinBuffer to atomics