Re: Request for help setting up source tree - Mailing list pgsql-general

From r d
Subject Re: Request for help setting up source tree
Date
Msg-id CALtFtELcBbeF-Zcfg-=m52N-vj0EwXVgeC9cAmPSxgk13-ufoA@mail.gmail.com
Whole thread Raw
In response to Request for help setting up source tree  (r d <rd0002@gmail.com>)
List pgsql-general
Ok, that was a stupid question to ask, what comes from falling in panic and suspending thinking before talking :-(

Solution in case anybody else panics:
a) install the postgresql-devel package from yum
b) add the include directory '/usr/include/pgsql/server' in your IDE. In Netbeans 7.3b2 that would be in
    Tools -> Options -> C/C++ -> Code Assistance -> C Compiler

and suddenly everything works ...

So then :-)

On 20 November 2012 15:51, r d <rd0002@gmail.com> wrote:
Hi,

I want to make an extension but don't understand the source setup well.
a) Do I need the full source of postgres locally?
b) Where must the source be? The project dir is ~/nbprojects/my_pg_ext
 and I am using the code of the fuzzystrmatch contrib as my "template"
from where to start
c) My installation of postgres is 9.1.6 and I don't intend to upgrade
for now. Can I use an extension compiled against 9.2.x code in my
9.1.6 installation?

I am using the Netbeans IDE but also understand Eclipse.

Thanks for any help/info.

RD

pgsql-general by date:

Previous
From: Shaun Thomas
Date:
Subject: Re: High SYS CPU - need advise
Next
From: Merlin Moncure
Date:
Subject: Re: High SYS CPU - need advise