pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: selkovjr@mcs.anl.gov
To: fabian baena <fabbaena@hotmail.com>
To: pgsql-general@postgreSQL.org
Subject: Re: [GENERAL] Trying to make functions in 'C'
Date: Sun, 16 May 1999 15:24:24 -0400
Message-ID: <199905162023.PAA16291@antares.mcs.anl.gov> (raw)
In-Reply-To: <19990516162326.84206.qmail@hotmail.com>

> I'm tying to learn how to make function in 'C'.
> I'm trying to compile a program I made in 'C'.
> The command I gave were:
> 
> % gcc -fPIC -c addone.c -I/usr/local/pgsql/include
> % ld -G -Bdynamic -o addone.so addone.o
> 
> and created the function in postgres like this:
> 
>          CREATE FUNCTION add_one(int4) RETURNS int4
>               AS './addone.so' LANGUAGE 'c';
                   ^^^^^^^^^^^^^
one must provide an absolute path here

--Gene



Message-ID: <199905162023.PAA16291@antares.mcs.anl.gov>
Permalink:  ../199905162023.PAA16291@antares.mcs.anl.gov/
Also on:    postgresql.org/message-id/199905162023.PAA16291@antares.mcs.anl.gov

 · 

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-interfaces@postgresql.org
  Cc: selkovjr@mcs.anl.gov, fabbaena@hotmail.com, pgsql-general@postgreSQL.org
  Subject: Re: [GENERAL] Trying to make functions in 'C'
  In-Reply-To: <199905162023.PAA16291@antares.mcs.anl.gov>
  References: <19990516162326.84206.qmail@hotmail.com> <199905162023.PAA16291@antares.mcs.anl.gov>

* 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