On Nov 20, 2024, at 04:05, Peter Eisentraut <pe...@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 latter style, 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



Reply via email to