Re: Registring a C function in PostgreSQL

From: Haller Christoph <ch(at)rodos(dot)fzk(dot)de>
To: iafmgc(at)unileon(dot)es (=?iso-8859-1?Q?Miguel_Gonz=E1lez?=)
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Registring a C function in PostgreSQL
Date: 2001-09-19 10:24:54
Message-ID: 200109190824.KAA23466@rodos
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 text
AS './byteatostr.sl' LANGUAGE 'c';
and it worked.
Maybe you should add some more information about
what you did in detail.
Regards, Christoph

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Miguel González 2001-09-19 10:41:12 Re: Registring a C function in PostgreSQL
Previous Message Peter Eisentraut 2001-09-19 08:09:20 Re: Registring a C function in PostgreSQL