Re: Patch - Debug builds without optimization

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Patch - Debug builds without optimization
Дата
Msg-id 1322604479.7093.5.camel@vanquo.pezone.net
обсуждение исходный текст
Ответ на Re: Patch - Debug builds without optimization  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: Patch - Debug builds without optimization  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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.





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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Avoiding repeated snapshot computation
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Patch - Debug builds without optimization