Re: Assert for frontend programs? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Assert for frontend programs?
Date
Msg-id 1355639387.4311.0.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: Assert for frontend programs?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Assert for frontend programs?  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On Fri, 2012-12-14 at 17:03 -0500, Tom Lane wrote:
> Having the layer is a good thing, eg so that USE_ASSERT_CHECKING
> can control it, or so that somebody can inject a different behavior
> if they want. 

You could also (or at least additionally) map !USE_ASSERT_CHECKING to
NDEBUG.  This would also help with imported code that calls assert()
directly.




pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: LATERAL and VOLATILE functions
Next
From: Peter Eisentraut
Date:
Subject: Re: Assert for frontend programs?