From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Debugging symbols by default |
Date: | 2002-04-08 15:56:17 |
Message-ID: | Pine.LNX.4.30.0204081143580.685-100000@peter.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)gmx(dot)net
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2002-04-08 16:07:04 | Re: timeout implementation issues |
Previous Message | Thomas Lockhart | 2002-04-08 15:32:50 | Re: timeout implementation issues |