Re: Assert Levels

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Assert Levels
Дата
Msg-id 26439.1221860848@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Assert Levels  (Greg Smith <gsmith@gregsmith.com>)
Ответы Re: Assert Levels
Re: Assert Levels
Список pgsql-hackers
Greg Smith <gsmith@gregsmith.com> writes:
> On Fri, 19 Sep 2008, Greg Stark wrote:
>> This is a good example of why running with assertions enabled on production 
>> might not be a good idea. But it's also a good example of why we should do 
>> our performance testing with assertions enabled if we can do it without 
>> invalidating the results.

> The performance impact of assertions is large enough that I don't think 
> that goal is practical.

Well, there are certain things that --enable-cassert turns on that are
outrageously expensive; notably CLOBBER_FREED_MEMORY and
MEMORY_CONTEXT_CHECKING.  It wouldn't be too unreasonable to decouple
those things somehow (with a means more accessible than editing
pg_config_manual.h).

I don't think anyone knows what the performance impact of just the
regular Asserts is; it's been too long since these other things were
stuck in there.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: WIP patch: Collation support
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: PostgreSQL future ideas