Re: [PROPOSAL] Client Log Output Filtering - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: [PROPOSAL] Client Log Output Filtering
Date
Msg-id 20160329164842.GA860429@alvherre.pgsql
Whole thread Raw
In response to Re: [PROPOSAL] Client Log Output Filtering  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Robert Haas wrote:

> Yeah, I think it's dead certain that such code exists, and, ahem, not
> only in our tree.  I suspect that EDB is not the only organization
> that has written code that involves comparing error levels.  Putting
> the flags in the low-order bits seems like it might be workable, but I
> think using a high-order bit is right out.

We could redefine elevel as a struct when assertions are enabled, and
provide functions to do the < comparisons in that case; they would
reduce to regular integers when assertions are disabled.  That would
raise compile-time errors in all places that need to be updated.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Petr Jelinek
Date:
Subject: Re: WIP: Access method extendability
Next
From: Fabrízio de Royes Mello
Date:
Subject: Re: Sequence Access Method WIP