Re: more docs on extending postgres in C

From: Adrian von Bidder <avbidder(at)fortytwo(dot)ch>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: more docs on extending postgres in C
Date: 2010-01-20 16:43:27
Message-ID: 201001201743.28002@fortytwo.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wednesday 20 January 2010 15.42:14 Ivan Sergio Borgonovo wrote:
> I'd also appreciate some suggestion about dev environment and best
> practices on Debian, something that could help me to compile,
> install, test easily on Debian.

(Disclaimer: Haven't done any postgres related programming so far, so this
might need adjusting.)

The desciption for package postgresql-server-dev-8.4 includes

[[[
This package also contains the Makefiles necessary for building add-on
modules of PostgreSQL, which would otherwise have to be built in the
PostgreSQL source-code tree.
]]]

so this package plus C compiler and the other usual tools should get you
started. (There is also the 'build-essential' Debian package which will
ensure you have a basic C/C++ development environment. For other packages
you might need to build extensions you could look at the build dependencies
of the postgresql-8.4 *source* Debian package; I'm offline right now but I
think <http://packages.qa.debian.org/postgresql-8.4> should get you this
information.)

If you find that you can not compile an extension with only this server-dev
package but need other stuff from the PostgreSQL source, I'm sure the
PostgreSQL packagers would appreciate a bug report.)

(I hope I'm not just telling you stuff you alredy know; sorry if so.)

cheers
-- vbi

--
Today is Setting Orange, the 20th day of Chaos in the YOLD 3176

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ivan Sergio Borgonovo 2010-01-20 17:09:19 Re: more docs on extending postgres in C
Previous Message Pavel Stehule 2010-01-20 16:38:17 Re: more docs on extending postgres in C