Florian Pflug <f...@phlo.org> writes: > On Oct14, 2011, at 23:51 , Tom Lane wrote: >> It seems to me that a client-side facility would be unlikely to do the >> right things, because it has not got enough information to know which >> messages came from plpgsql RAISE commands. Moreover, it's not apparent >> that a one-size-fits-all approach is suitable anyhow: it may be that >> some RAISEs don't need context traceback while others could use it.
> Hm, I think you'd usually want to adjust the verbosity of log messages > when you *run* code, not when you *write* it. That's the raison d'etre > for having logging infrastructure and verbosity settings, after all. No, I don't think so. The use-case for this sort of thing seems to me to be messages that are directed to the user or DBA, and don't want to be decorated with a lot of information about where they came from. That determination is usually pretty clear when you write the code. Moreover, if we don't attach the specification to particular RAISE commands, it's going to be "all or nothing", which is most definitely not the right thing. Having said that, if we allow "USING context = boolean_expression", it'd be possible for the plpgsql coder to make the behavior run-time adjustable if he wanted. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers