Re: BUG #19506: LOAD '$libdir/...' inside extension scripts ignores dynamic_library_path with extension_control_path

From: "Matheus Alcantara" <matheusssilv97(at)gmail(dot)com>
To: "Gabriele Bartolini" <gabriele(dot)bartolini(at)enterprisedb(dot)com>
Cc: <gabriele(dot)bartolini(at)gmail(dot)com>, <pgsql-bugs(at)lists(dot)postgresql(dot)org>, "Peter Eisentraut" <peter(at)eisentraut(dot)org>
Subject: Re: BUG #19506: LOAD '$libdir/...' inside extension scripts ignores dynamic_library_path with extension_control_path
Date: 2026-07-07 10:02:26
Message-ID: DJS941XZ7ZOW.22GRCYKPAJA0L@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Mon Jul 6, 2026 at 10:37 PM -03, Gabriele Bartolini wrote:
> Hi Matheus, do you think we can apply this patch to the next Postgres minor
> release?
>

Hi Gabriele, did you saw my reply on [1]?

Although we have this strip logic when reading module_pathname I'm not
sure if we should replicate this for the LOAD command.

I think that this should be fixed on postgis update scripts instead of
Postgres since the $libdir on module_pathname and LOAD commands is not
necessary anymore after 18 release.

Also I think that we need more opinions on this from other hackers.

[1] https://www.postgresql.org/message-id/9ef850b9-d127-44db-9a6c-4db64436b056%40gmail.com

--
Matheus Alcantara
EDB: https://www.enterprisedb.com

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message David Rowley 2026-07-07 12:02:30 Re: BUG #19533: Wrong results from WindowAgg run-condition pushdown on count() with EXCLUDE CURRENT ROW
Previous Message Bharath Rupireddy 2026-07-07 07:38:02 Re: BUG #19536: UPDATE RETURNING OLD value is stale after concurrent update when table has a BEFORE UPDATE trigger