Re: Patch for Improved Syntax Error Reporting

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Patch for Improved Syntax Error Reporting
Дата
Msg-id 18145.996704520@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Patch for Improved Syntax Error Reporting  (Fernando Nasser <fnasser@cygnus.com>)
Список pgsql-patches
Fernando Nasser <fnasser@cygnus.com> writes:
> If instead of printing:
> ERROR: A parse error near "foo"
> we print
> ERROR: A parse error near "foo" (index=10)
> it should not affect any of the existing clients.

One objection to this idea is that it doesn't play nicely with
localization of error message texts.  I'd sooner do

    ERROR: A parse error near "foo"
    ERRORLOCATION: 10

which doesn't create any problems with localization (there's no
particular need to translate the keywords, since a client probably
wouldn't show them to the user anyway).  It's just as backward
compatible, and not that much uglier for an old client.

            regards, tom lane

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Patch to contrib/fulltextindex/fti.sql
Следующее
От: Neil Padgett
Дата:
Сообщение: Re: Patch for Improved Syntax Error Reporting