Re: [GENERAL] Trying to make functions in 'C'

From: selkovjr(at)mcs(dot)anl(dot)gov
To: "fabian baena" <fabbaena(at)hotmail(dot)com>, pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] Trying to make functions in 'C'
Date: 1999-05-16 19:24:24
Message-ID: 199905162023.PAA16291@antares.mcs.anl.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-interfaces

> 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Jenner 1999-05-16 21:28:03 Re: RH 6.0 and PostgreSQL
Previous Message fabian baena 1999-05-16 11:23:25 Trying to make functions in 'C'

Browse pgsql-interfaces by date

  From Date Subject
Next Message Geoffrey C. Speicher 1999-05-16 21:12:41 PgODBC + Borland C++ Builder problems
Previous Message Julian Scarfe 1999-05-16 15:34:44 Paths in DBD::Pg