Greg Smith <[EMAIL PROTECTED]> writes:
> On Tue, 30 Oct 2007, Alvaro Herrera wrote:
>> It would also be good to make --enable-debug the default.

> The last time I did a build with both --enable-debug and --enable-cassert, 
> I was seeing pgbench results that were significantly (around 40% I think) 
> slower than without those two.

Yeah, cassert is expensive (mostly it's the CLOBBER_FREED_MEMORY part,
which you can disable separately if you have a mind to).  --enable-debug
is supposed to be free when using gcc, though I've never tried to verify
that.  We can *not* make --enable-debug the default on non-gcc
compilers, though, and that makes me uncomfortable about turning it on
by default for gcc ... platform-specific defaults don't sound good.

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match

Reply via email to