Re: Syntax error reporting (was Re: [PATCHES] syntax error

Поиск
Список
Период
Сортировка
От Fabien COELHO
Тема Re: Syntax error reporting (was Re: [PATCHES] syntax error
Дата
Msg-id Pine.LNX.4.58.0403221729030.7217@sablons.cri.ensmp.fr
обсуждение исходный текст
Ответ на Re: Syntax error reporting (was Re: [PATCHES] syntax error position "CREATE FUNCTION" bug fix)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> > Maybe I missed something, but it seemed to me that strings are appended
> > on to the other, and there is no way back.
>
> But the string list is not constructed until the error actually occurs.
> You don't need a pop at that point --- the call stack is what it is.
>
> I think you are imagining that outer-level context hooks should be able
> to editorialize on what inner-level ones said (or perhaps vice versa?)

No.

I just missed the "error_context_stack" by focussing on "errcontext()",
which does not managed a stack at all, so I was quite puzzled. Now
it is clearer.

Thanks,

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


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

Предыдущее
От: "Grace Mou"
Дата:
Сообщение: A student research project on triggers
Следующее
От: Sean Chittenden
Дата:
Сообщение: Re: Per database users/admins, handy for database virtual hosting...