Re: A plan to improve error messages with context, hint

Поиск
Список
Период
Сортировка
От Fabien COELHO
Тема Re: A plan to improve error messages with context, hint
Дата
Msg-id Pine.LNX.4.58.0403050844190.821@mordor.coelho.net
обсуждение исходный текст
Ответ на Re: A plan to improve error messages with context, hint  (Dennis Bjorklund <db@zigo.dhs.org>)
Список pgsql-hackers
> > (2) Does someone has any comment about these problems or
> >     the way I intend to try to address them?
>
> About the implementation idea with hints. I'm not sure will be so easy to
> implement as you suggested. Maybe if one add hints to every construct,
> and set to empty hint where it does not make sense.

Sure.

> What I'm afraid of is to get hints or advices that are plain wrong.
>   CREATE TABLE foo (bar int key);
>   HINT: table name expected
> or something.

Sure, I agree with you.

> But if it works good in practice, why not having hints.

I agree that the actual validation is whether the result looks good,
and are most of the time useful.

> stmt: CREATE TABLE ( anything ); { generate error "missing table name" }

Yes, that's an idea, but it would change the syntax definition, and
may create conflicts, so it's an harder way to do it.

-- 
Fabien Coelho - coelho@cri.ensmp.fr


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

Предыдущее
От: Thomas Swan
Дата:
Сообщение: Re: [pgsql-hackers-win32] Tablespaces
Следующее
От: Fabien COELHO
Дата:
Сообщение: Re: A plan to improve error messages with context, hint