Re: Patch - Debug builds without optimization

Поиск
Список
Период
Сортировка
Искать
От
Bruce Momjian
Тема
Re: Patch - Debug builds without optimization
Дата
Msg-id
201111300013.pAU0Dno28959@momjian.us
Ответ на
Список
Дерево обсуждения
Patch - Debug builds without optimization Radosław Smogura <rsmogura@softperience.eu>
Re: Patch - Debug builds without optimization Alvaro Herrera <alvherre@commandprompt.com>
Re: Patch - Debug builds without optimization Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch - Debug builds without optimization Radosław Smogura <rsmogura@softperience.eu>
Re: Patch - Debug builds without optimization Greg Stark <stark@mit.edu>
Re: Patch - Debug builds without optimization Radosław Smogura <rsmogura@softperience.eu>
Re: Patch - Debug builds without optimization Greg Smith <greg@2ndquadrant.com>
Re: Patch - Debug builds without optimization Alvaro Herrera <alvherre@commandprompt.com>
Re: Patch - Debug builds without optimization Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch - Debug builds without optimization Greg Smith <greg@2ndQuadrant.com>
Re: Patch - Debug builds without optimization Bernd Helmle <mailings@oopsware.de>
Re: Patch - Debug builds without optimization Alvaro Herrera <alvherre@commandprompt.com>
Re: Patch - Debug builds without optimization Radosław Smogura <rsmogura@softperience.eu>
Re: Patch - Debug builds without optimization Florian Pflug <fgp@phlo.org>
Re: Patch - Debug builds without optimization Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch - Debug builds without optimization Greg Smith <greg@2ndQuadrant.com>
Re: Patch - Debug builds without optimization Bruce Momjian <bruce@momjian.us>
Re: Patch - Debug builds without optimization Peter Eisentraut <peter_e@gmx.net>
Re: Patch - Debug builds without optimization Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch - Debug builds without optimization Bruce Momjian <bruce@momjian.us>
Re: Patch - Debug builds without optimization Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch - Debug builds without optimization Bruce Momjian <bruce@momjian.us>
Re: Patch - Debug builds without optimization Robert Haas <robertmhaas@gmail.com>
Re: Patch - Debug builds without optimization Bruce Momjian <bruce@momjian.us>
Re: Patch - Debug builds without optimization Florian Pflug <fgp@phlo.org>
Tom Lane wrote:
> Peter Eisentraut  writes:
> > 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.
> 
> Yes.  -O0 is really a pretty horrid default choice, and we should NOT be
> recommending it, especially not with no discussion of the disadvantages.

I have applied the attached patch to mention the debugger.  OK?

-- 
  Bruce Momjian          http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +
commit 2ff36abeec948899b9a51d1c945e9fbe85e056d5
Author: Bruce Momjian 
Date:   Tue Nov 29 19:11:53 2011 -0500

    In docs, suggest "-O0 -g" only if using a debugger.

diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml
new file mode 100644
index 16fbdc6..76c64e5
*** a/doc/src/sgml/installation.sgml
--- b/doc/src/sgml/installation.sgml
*************** su - postgres
*** 1418,1424 ****
        Server developers should consider using the configure options 
        
В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Joe Abbate
Дата:
FAQ