Re: glob support in extension_control_path/dynamic_library_path?

From: "David E(dot) Wheeler" <david(at)justatheory(dot)com>
To: Jakob Egger <jakob(at)eggerapps(dot)at>
Cc: pgsql-hackers(at)postgresql(dot)org, Tobias Bussmann <t(dot)bussmann(at)gmx(dot)net>
Subject: Re: glob support in extension_control_path/dynamic_library_path?
Date: 2026-05-29 21:36:57
Message-ID: 97AA052C-D89F-46B2-BBFF-5601B40D7B7B@justatheory.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On May 29, 2026, at 14:26, Jakob Egger <jakob(at)eggerapps(dot)at> wrote:

> It would be really nice if we could just use glob patterns like this:
>
> extension_control_path="$system:/Users/jakob/Library/Application Support/Postgres/Extensions/18/*/share/postgresql"
> dynamic_library_path="$libdir:/Users/jakob/Library/Application Support/Postgres/Extensions/18/*/lib/postgresql"
>
> This would also have the advantage of not requiring a server restart after installing an extension.

Somehow a glob never occurred to me. 🤦🏻

> I believe this would also be useful for Docker use case mentioned in the original thread (https://www.postgresql.org/message-id/E7C7BFFB-8857-48D4-A71F-88B359FADCFD%40justatheory.com) when multiple extensions are used

Indeed.

> I have tried implementing this patch myself, and it was pretty straightforward to implement a proof of concept.
>
> I wonder if such an addition would be useful for other packagers?

Me too! I had been planning to propose a new directory layout, but a glob is a much simpler solution.

D

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Álvaro Herrera 2026-05-29 21:41:42 Re: [PATCH] Fix segmentation fault caused by reentrancy in RI_Fkey_cascade_del (ri_triggers.c)
Previous Message Zsolt Parragi 2026-05-29 21:08:42 Re: [PATCH] Prevent repeated deadlock-check signals in standby buffer pin waits