Re: Syntax error reporting (was Re: [PATCHES] syntax error - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: Syntax error reporting (was Re: [PATCHES] syntax error
Date
Msg-id Pine.LNX.4.58.0403221729030.7217@sablons.cri.ensmp.fr
Whole thread Raw
In response to Re: Syntax error reporting (was Re: [PATCHES] syntax error position "CREATE FUNCTION" bug fix)  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: "Grace Mou"
Date:
Subject: A student research project on triggers
Next
From: Sean Chittenden
Date:
Subject: Re: Per database users/admins, handy for database virtual hosting...