Re: RFC: Additional Directory for Extensions - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: RFC: Additional Directory for Extensions
Date
Msg-id 5A9D764A-6448-4DCF-9691-769FC7FD0F62@justatheory.com
Whole thread Raw
In response to Re: RFC: Additional Directory for Extensions  (Peter Eisentraut <peter@eisentraut.org>)
List pgsql-hackers
On Nov 20, 2024, at 04:05, Peter Eisentraut <peter@eisentraut.org> wrote:

> The path is only consulted if the specified name does not contain a slash.  So if you do LOAD 'foo', the path is
consulted,but if you do LOAD '$libdir/foo', it is not.  The problem I'm describing is that most extensions use the
latterstyle, per current recommendation in the documentation. 

I see; some details here:

  https://www.postgresql.org/docs/current/xfunc-c.html#XFUNC-C-DYNLOAD

And I suppose the `directory` control file variable and `MODULEDIR` make variable make that necessary.

Maybe $libdir should be stripped out when installing extensions to work with this patch?

Best,

David




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: EphemeralNamedRelation and materialized view
Next
From: Dmitry Dolgov
Date:
Subject: Re: ALTER TABLE uses a bistate but not for toast tables