Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> writes:
> Well, we already do this in a number of places. But I can get behind
> this:
>> Maybe it'd be a good idea to have elog.c expose a new function
>> along the lines of "bool message_level_is_interesting(int elevel)"
>> to support this and similar future optimizations in a less fragile way.
I'll see about a patch for that.
regards, tom lane