Re: Mention column name in error messages

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Mention column name in error messages
Дата
Msg-id 1299.1478466803@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Mention column name in error messages  (Franck Verrot <franck@verrot.fr>)
Ответы Re: Mention column name in error messages
Список pgsql-hackers
Franck Verrot <franck@verrot.fr> writes:
> On Sat, Nov 5, 2016 at 11:13 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> The cases that are successfully annotated by the current patch seem to
>> mostly already have error cursor information, which really is good enough
>> IMO --- you can certainly figure out which column corresponds to the
>> textual spot that the cursor is pointing at.

> The original intent of that patch tried to cover the case where we insert
> records
> made of dozens columns sharing the same type definition, and trying to
> understand
> what is going on, at a glance, when we debugged something like this:
> ...
> Relying on the cursor seems to be of little help I'm afraid.

Well, it would be an improvement over what we've got now.  Also, a feature
similar to what I suggested would help in localizing many types of errors
that have nothing to do with coercion to a target column type.
        regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Franck Verrot
Дата:
Сообщение: Re: Mention column name in error messages
Следующее
От: Shay Rojansky
Дата:
Сообщение: Re: macaddr 64 bit (EUI-64) datatype support