Re: BUG #18920: LOAD '$libdir/plugins' no longer works in 18beta1 - Mailing list pgsql-bugs

From Nathan Bossart
Subject Re: BUG #18920: LOAD '$libdir/plugins' no longer works in 18beta1
Date
Msg-id aD3ci7soqldAHtb0@nathan
Whole thread Raw
In response to BUG #18920: LOAD '$libdir/plugins' no longer works in 18beta1  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
On Mon, Jun 02, 2025 at 11:05:12AM -0300, Matheus Alcantara wrote:
> The problem is how we are sripping the $libdir from module_pathname. I
> think that we should still strip the $libdir from module_pathname when
> expanding from a .control file, but we should not expand via LOAD
> command, since the user may explicitly specify the $libdir prefix as it
> is the case here.
> 
> Having this logic on expand_dynamic_library_name() force us to srip the
> $libdir for all scenarios, so I think that a better place to have this
> is on load_external_function() that is called when executing a SQL
> script from an extension.

Thanks for the patch.  This seems generally reasonable to me.

-- 
nathan



pgsql-bugs by date:

Previous
From: "Badia, Antonio"
Date:
Subject: Re: function 'IS JSON ARRAY' not identified
Next
From: Masahiko Sawada
Date:
Subject: Re: Logical replication 'invalid memory alloc request size 1585837200' after upgrading to 17.5