Re: Assert Levels
От | Greg Stark |
---|---|
Тема | Re: Assert Levels |
Дата | |
Msg-id | 9BF691D4-C386-4FA3-BA48-D2426E9B3B71@enterprisedb.com обсуждение исходный текст |
Ответ на | Re: Assert Levels (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Assert Levels
|
Список | 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 по дате отправления: