Re: adding and compiling new code

From: Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>
To: Martha Chronopoulou <mchron(at)aueb(dot)gr>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: adding and compiling new code
Date: 2004-11-07 15:20:24
Message-ID: Pine.LNX.4.44.0411071610300.2015-100000@zigo.dhs.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, 7 Nov 2004, Martha Chronopoulou wrote:

> recompile the new source code that I added in some .c files. I suspect
> that there must be a quicker way to compile those files than executing
> the commands: ./configure, gmake, gmake install... . Could I use only
> some Makefiles (the correspodent ones) that there are in each
> directory? If yes, how should I use them?

After one have made the first compile and install, it's usually enough to
just compile and install a part of pg. For example if you have changed
something in psql then you run "make" followed by "make install" in the
psql subdirectory of the source.

Some changes demand a full new compile ("make clean" and sometimes "make
distclean") and some changes demand that you do initdb again, but in most
cases one can just compile a part of pg. Then install that part and
restart the server.

I have a fairly slow computer (800 MHz) and I use ccache which make it
much faster to rebuild pg then without. A big difference. I still want a
faster computer, but we don't get all we want I'm afraid :-)

--
/Dennis Björklund

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Reini Urban 2004-11-07 16:28:54 Re: cygwin build failure
Previous Message Martha Chronopoulou 2004-11-07 14:55:56 adding and compiling new code