Re: BUG #18920: LOAD '$libdir/plugins' no longer works in 18beta1

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема Re: BUG #18920: LOAD '$libdir/plugins' no longer works in 18beta1
Дата
Msg-id aD3ci7soqldAHtb0@nathan
обсуждение исходный текст
Ответ на BUG #18920: LOAD '$libdir/plugins' no longer works in 18beta1  (PG Bug reporting form <noreply@postgresql.org>)
Список 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 по дате отправления: