Re: Registring a C function in PostgreSQL - Mailing list pgsql-sql

From Haller Christoph
Subject Re: Registring a C function in PostgreSQL
Date
Msg-id 200109190824.KAA23466@rodos
Whole thread Raw
In response to Registring a C function in PostgreSQL  (Miguel González <iafmgc@unileon.es>)
List pgsql-sql
Did you use the compiler option for generating 
position independent code (PIC) for use in building
shared libraries.
Did you use the linker option for creating 
a shared library - I think you did, the file 
suffix .so looks that way. 
I did it several times successfully using commands 
like 
CREATE FUNCTION byteatostr(bytea) RETURNS textAS './byteatostr.sl' LANGUAGE 'c';
and it worked. 
Maybe you should add some more information about 
what you did in detail. 
Regards, Christoph 


pgsql-sql by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Registring a C function in PostgreSQL
Next
From: "ericnielsen@pop.ne.mediaone.net"
Date:
Subject: Implicit v Explicit joins...