Re: Proposed patch for error locations

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: Proposed patch for error locations
Дата
Msg-id C3817205-17E1-4D6C-9D92-ED6045123F92@myrealbox.com
обсуждение исходный текст
Ответ на Proposed patch for error locations  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Proposed patch for error locations  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
On Mar 13, 2006, at 2:37 , Tom Lane wrote:

> to wit, that we make use of bison's "locations" feature to track token
> positions in the grammar, and add locations to raw parse tree nodes as
> needed.
>
> Some examples of what it can do:

This looks really nice.

> One thing I'm noticing already is that the addition of "at
> character N"
> to a lot of these messages isn't an improvement.  In psql it's
> certainly
> redundant with the error-cursor display.

The pure character count is definitely difficult to use with larger
queries. I think it could be more useful if it were
line:char_of_line. Would others find this useful?

Michael Glaesemann
grzm myrealbox com




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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: Fix syntax errors in contrib uninstall scripts
Следующее
От: ITAGAKI Takahiro
Дата:
Сообщение: Re: [HACKERS] Automatic free space map filling