| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | Matheus Alcantara <matheusssilv97(at)gmail(dot)com>, Andres Freund <andres(at)anarazel(dot)de> |
| Cc: | Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: extension_control_path: ignore empty elements and deduplicate directories |
| Date: | 2026-11-30 15:05:58 |
| Message-ID: | 46b27b3a-f974-453f-8862-db00bc4f4d81@eisentraut.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 16.11.26 17:40, Matheus Alcantara wrote:
> I think that is mostly for back-patching. Turning into an error would
> make a server to not start after a minor release upgrade. Querying
> pg_available_extensions would also break after the upgrade with an
> empty path element.
>
> Ideally I also think that raising an error would be better, but this
> back-patching issue got me, and having different behaviors across
> different versions also seems confusing to me, but I might being to
> conservative here.
>
> (Thinking while writing this, and not being too conservative, perhaps we
> can consider to ignore empty path elements for back-patching and change
> master to raise an error since the with extension_control_path =
> '$system:' is an invalid syntax.).
I think that would be a good solution.
The backpatched versions could raise a warning instead of an error, so
that (1) the patches are structured similarly, and (2) users of those
versions get told that they are making a mistake and they should fix
their setting.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Daniel Gustafsson | 2026-11-30 15:11:43 | Re: passwordcheck: Make the user name check case-insensitive |
| Previous Message | Baji Shaik | 2026-11-30 14:32:20 | Re: Three more loops that let a function drop a not-yet-processed index/partition |