Re: Debugging symbols by default

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Debugging symbols by default
Дата
Msg-id Pine.LNX.4.30.0204081143580.685-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: Debugging symbols by default  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian writes:

> I am not sure about the idea of -g by default. I know lyx uses -g by
> default, and the compile/install takes forever.  In fact, I have removed
> -g from my compiles here because it takes too long to compile/link and I
> do it too often.  When I need to debug, I recompile with -g.  My concern
> is that we may start to look very bloated with -g and those huge
> binaries.  My question is whether it is worth the install slowness/bloat?

PostgreSQL compile time is minimal compared to other packages.  If you're
worried about 30 seconds, turn off the optimization or use parallel make.
If you see yourself doing a full build too often, turn on dependency
tracking.  The extra time you spend building with -g is the time you save
yourself and the users from having to recompile everything because a bug
needs to be tracked down.  And when you rebuild, the bug might not be
reproduceable.

I don't buy the disk space argument either.  If you're worried about a few
megabytes then you going to have a lot of trouble running a database.
And if you're still worried, you can run install-strip, which is the
standard way to do it.

-- 
Peter Eisentraut   peter_e@gmx.net



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

Предыдущее
От: Thomas Lockhart
Дата:
Сообщение: Re: timeout implementation issues
Следующее
От: Fernando Nasser
Дата:
Сообщение: Re: What's the CURRENT schema ?