> > 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 imaginin
Fabien COELHO <[EMAIL PROTECTED]> writes:
>>> More over, I have other ideas for CONTEXT, which should really be a stack.
>> It already is a stack.
> Ok, I agree that there is a "push", but I'm still looking fot the "pop".
> Maybe I missed something, but it seemed to me that strings are appended
>
Dear Tom,
> The point is that CONTEXT is essentially a record of "how we got here".
Yes, but for human eyes.
> In a situation where the actual error occurs inside a couple of levels
> of nesting, you want to be able to report the outer queries as well as
> the one that directly caused the error
Fabien COELHO <[EMAIL PROTECTED]> writes:
> I agree with you that both reports should not look the same.
> The good news is that they already do not look the same, thanks
> to the CONTEXT information.
Right, but you quite properly didn't like my quick-hack to psql that
assumes that the presence o
Dear Tom,
> > However, I still stick with my "bad" simple idea because the simpler the
> > better, and also because of the following example:
> > ...
> > psql> SELECT count_tup('pg_shadow');
> > ERROR: syntax error at or near "FRM" at character 22
> > CONTEXT: PL/pgSQL function "count_tup" line