Re: Assert Levels

From: Greg Stark <greg(dot)stark(at)enterprisedb(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Simon Riggs <simon(at)2ndQuadrant(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Assert Levels
Date: 2008-09-19 17:50:32
Message-ID: 9BF691D4-C386-4FA3-BA48-D2426E9B3B71@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

greg

On 19 Sep 2008, at 13:20, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Simon Riggs <simon(at)2ndQuadrant(dot)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(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David E. Wheeler 2008-09-19 18:05:36 Re: Where to Host Project
Previous Message Robert Haas 2008-09-19 17:42:18 Re: Proposal of SE-PostgreSQL patches (for CommitFest:Sep)