Re: Assert Levels - Mailing list pgsql-hackers

From Greg Stark
Subject Re: Assert Levels
Date
Msg-id 9BF691D4-C386-4FA3-BA48-D2426E9B3B71@enterprisedb.com
Whole thread Raw
In response to Re: Assert Levels  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Assert Levels  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers

greg

On 19 Sep 2008, at 13:20, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> Simon Riggs <simon@2ndQuadrant.com> writes:
>> Can we introduce levels of assertion?
>
> The thing that is good about Assert() is that it doesn't require a lot
> of programmer effort to put one in.  I'm not in favor of complexifying
> it.
>

Perhaps just an Assert_expensive() would be useful if someone wants to  
to the work of going through all the assertions and determining if  
they're especially expensive. We already have stuff like CLOBBER*.

You'll also have to do enough empirical tests to convince people that  
a --enable-cheap-casserts build really does perform the same as a  
regular build.




>            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


pgsql-hackers by date:

Previous
From: "Robert Haas"
Date:
Subject: Re: Proposal of SE-PostgreSQL patches (for CommitFest:Sep)
Next
From: "David E. Wheeler"
Date:
Subject: Re: Where to Host Project