Skip site navigation (1) Skip section navigation (2)

Re: Patch - Debug builds without optimization

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Greg Smith <greg(at)2ndQuadrant(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Patch - Debug builds without optimization
Date: 2011-11-29 22:07:59
Message-ID: 1322604479.7093.5.camel@vanquo.pezone.net (view raw or flat)
Thread:
Lists: pgsql-hackers
On tis, 2011-11-29 at 16:32 -0500, Bruce Momjian wrote:
> I have applied the attached patch to help make suggestsions for server
> developers.  I didn't reproduce most of the text because it was already
> listed with the options.  Let me know if you want additional text.

Advising "server developers" to use CFLAGS="-O0 -g", without
qualification, is dangerous, in my mind, because that loses a lot of
compiler checks.  The only reason to use -O0 is when you really need to
debug something in single steps and you can't make sense of it any other
way.




In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2011-11-29 22:12:11
Subject: Re: Patch - Debug builds without optimization
Previous:From: Andres FreundDate: 2011-11-29 22:00:50
Subject: Re: Avoiding repeated snapshot computation

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group