pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mogin Mohandas <moginmo@gmail.com>
To: pgsql-admin@postgresql.org
Subject: server side extension
Date: Mon, 25 Jul 2005 18:35:37 -0500
Message-ID: <fd2290fd0507251635521100d8@mail.gmail.com> (raw)

Hi
     I was trying to built a new base data type into postgres. i am
using 7.4.8 on debian. There is already an eg in src/tutorial which
gives code for intenal and external functions of a new type called
complex. I tried to create a shared library for the file complex.c
using  "cc -fpic -c complex.c" and "cc -shared -o complex.so
complex.c".  That gave me a lot of errors like the header files 
"fmgr.h" and "postgres.h" did not exist. I did a "make" anyway.
                       After that I went into postgres and tried to
create the functions corresponding to the new type. It says the file
complex.so could not be found. So the shared library seems to have not
been created.
        When I installed postgres-7.4.8 there was some error when I
gave "make install-all-headers", so I just did "make install". I think
the header files required for server side development are not there
due to that. I think they are still there in the include dir. How do I
use those header files when I make a shared library and compile. If
anybody has created datatypes and defined them please share your
experience.
Thank you
Moginraj



Message-ID: <fd2290fd0507251635521100d8@mail.gmail.com>
Permalink:  ../fd2290fd0507251635521100d8@mail.gmail.com/
Also on:    postgresql.org/message-id/fd2290fd0507251635521100d8@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: moginmo@gmail.com
  Subject: Re: server side extension
  In-Reply-To: <fd2290fd0507251635521100d8@mail.gmail.com>
  References: <fd2290fd0507251635521100d8@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox