Re: Runtime SHAREDIR for testing CREATE EXTENSION - Mailing list pgsql-hackers

From Daniel Farina
Subject Re: Runtime SHAREDIR for testing CREATE EXTENSION
Date
Msg-id CAAZKuFZg3xS_TOw8CLged2dVBZN2sPBPEkKjf=Hixy-=6QiLgg@mail.gmail.com
Whole thread Raw
In response to Re: Runtime SHAREDIR for testing CREATE EXTENSION  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Runtime SHAREDIR for testing CREATE EXTENSION
List pgsql-hackers
On Fri, Mar 2, 2012 at 10:37 AM, Peter Eisentraut <peter_e@gmx.net> wrote:
> On tis, 2012-02-28 at 11:00 -0800, Daniel Farina wrote:
>> I'd really like to support libraries (C or otherwise) of multiple
>> versions at the same time, when the underlying library permits.
>
> What's preventing you from doing that now?  You need to name all the
> symbols differently, of course.

That's the problem: not really practical in a wider ecosystem of C
libraries, especially if the library produces multiple versions.  (Or,
not practical unless someone writes some credible
symbol-version-mangling-magic)

But is it unsurmountable? -- dlsym returns a function pointer, and one
would build up the operator table for the version of the extension at
hand, so one might have ltree "version 1.01" and ltree "version 2.3"
fields in the same database.

--
fdr


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Runtime SHAREDIR for testing CREATE EXTENSION
Next
From: Peter Eisentraut
Date:
Subject: Re: review of: collation for (expr)