You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Only add image extension paths to Postgres GUCs when the directory exists #11650
Is there an existing issue already for this feature request/idea?
I have searched for an existing issue, and could not find anything. I believe this is a new feature request to be evaluated.
What problem is this feature going to solve? Why should it be added?
Image extensions currently contribute their directories to extension_control_path and dynamic_library_path unconditionally. If an image doesn't ship a given directory, the GUC still references it.
The keycloak-oauth-validator image contains only lib/, system/ and licenses/. It has no share/. Even so:
postgres=# show extension_control_path;
$system:/extensions/pgvector/share:/extensions/keycloak-oauth-validator/share
The second entry points to a non-existent directory.
Harmless today, but it is noise. It makes the effective configuration misleading when debugging, and it relies on Postgres silently ignoring missing path entries.
Describe the solution you'd like
When building path-like GUCs for image extensions, include a directory only if it exists in the mounted image volume.
We want to broaden image extensions to cover Postgres modules and other loadable components (auth validators, hooks, shared_preload_libraries entries). Many of these ship only lib/ and no share/, or the reverse. The mismatch will become the norm.
The same applies to dynamic_library_path and any path-like setting we add later.
Describe alternatives you've considered
N/A
Additional context
Acceptance criteria
With the example above, extension_control_path is $system:/extensions/pgvector/share.
dynamic_library_path follows the same behaviour.
No change for images that ship all the expected directories.
Documentation for image extensions states that missing directories are skipped.
Backport?
Yes
Are you willing to actively contribute to this feature?
Activity
feat(extensions): skip image extension paths missing from the image
feat(extensions): skip image extension paths missing from the image
feat(extensions): skip image extension paths missing from the image
feat(extensions): skip image extension paths missing from the image (#…
feat(extensions): skip image extension paths missing from the image (#…