I put a lot of RAISE NOTICE in functions for debugging purpose. I think this will affect performance, so they should be removed on production environment. Is there any way to opt-out those logging/assertion functions only under specific conditions?
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
You could wrap them in an
I suspect you'll be better off lowering the log level in the
See the expanded form of the
Alternately, you can leave your messages at
So long as the notices aren't doing lots of expensive string formatting or being called huge numbers of times I suspect you won't have too much trouble with their performance impact while logging to file/client is suppressed by log levels.