Re: pgsql/src/include (config.h.in) - Mailing list pgsql-committers

From Tom Lane
Subject Re: pgsql/src/include (config.h.in)
Date
Msg-id 5631.975941434@sss.pgh.pa.us
Whole thread Raw
In response to Re: pgsql/src/include (config.h.in)  (Alfred Perlstein <bright@wintelcom.net>)
Responses Re: pgsql/src/include (config.h.in)  (Alfred Perlstein <bright@wintelcom.net>)
List pgsql-committers
Alfred Perlstein <bright@wintelcom.net> writes:
>> I'm going to leave CLOBBER_FREED_MEMORY and MEMORY_CONTEXT_CHECKING
>> turned on by --enable-cassert for now, however.

> Urk, this looks pretty expensive, is there any flags available that
> will enable the assertion checking without expensive memory zeroing
> (or 0xdeadbeef'ing) free'd memory?

You can twiddle the declarations in config.h (or config.h.in).

> Is running enable-cassert on my production boxes going to cause
> a lot of overhead?

While I haven't tried hard to measure it, the profiles that I've done
don't show it as a huge cost.

In any case, you're not planning to run beta code as production,
are you?

            regards, tom lane

pgsql-committers by date:

Previous
From: Alfred Perlstein
Date:
Subject: Re: pgsql/src/include (config.h.in)
Next
From: Alfred Perlstein
Date:
Subject: Re: pgsql/src/include (config.h.in)