> > debug_query_string doesn't necessarily have a lot to do with the
> > proximate cause of the error. Consider queries issued by rules,
> > triggers, plpgsql functions, etc.
>
> Maybe. I think giving the user the string that caused the error is
> probably what they want, rather than a rule or trigger that they can't
> tie back to an actual query.
Yeah, I'd agree with that.
Chris