Re: dynamically loaded functions

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: "TJ O'Donnell" <tjo(at)acm(dot)org>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: dynamically loaded functions
Date: 2005-07-13 02:08:47
Message-ID: 20050713020847.GA87716@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

On Mon, Jul 11, 2005 at 08:16:17PM -0700, TJ O'Donnell wrote:
>
> CREATE or REPLACE FUNCTION cansmiles(varchar) RETURNS varchar
> AS 'gnova', 'oe_cansmiles' LANGUAGE 'c' IMMUTABLE STRICT;
> requires preloading of oe_chem.so to work.
>
> Is there any way I can associate oe_cansmiles with 2 .so's without
> preloading?

It sounds like you need to link gnova.so against the other shared
objects so the runtime linker can find them. For examples, see the
Makefiles used by contributed modules like dblink, xml2, and a few
others that link against external libraries.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stuart Bishop 2005-07-13 02:18:35 Re: PL/pgGRESQL, SHA, BYTEA - Creating SHA1 hash for Bytea
Previous Message Tatsuo Ishii 2005-07-13 01:07:38 Re: Japanese words not distinguished

Browse pgsql-sql by date

  From Date Subject
Next Message Aaron Bingham 2005-07-13 09:13:06 Generating a range of integers in a query
Previous Message Michael Fuhr 2005-07-12 19:29:16 Re: Copy user privileges