From: Michael Fuhr <mike@fuhr.org>
To: TJ O'Donnell <tjo@acm.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: dynamically loaded functions
Date: Tue, 12 Jul 2005 20:08:47 -0600
Message-ID: <20050713020847.GA87716@winnie.fuhr.org> (raw)
In-Reply-To: <42D33601.5080605@acm.org>
References: <42D33601.5080605@acm.org>
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/
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mike@fuhr.org, tjo@acm.org
Subject: Re: dynamically loaded functions
In-Reply-To: <20050713020847.GA87716@winnie.fuhr.org>
* 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