Skip to content

feat(ansible): delegate extension version handling to site-extensions-update - #2324

Draft
brainrake wants to merge 4 commits into
developfrom
martonboros/psql-1530-prestart-site-extensions
Draft

feat(ansible): delegate extension version handling to site-extensions-update#2324
brainrake wants to merge 4 commits into
developfrom
martonboros/psql-1530-prestart-site-extensions

Conversation

@brainrake

@brainrake brainrake commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

DO NOT MERGE - WIP. Depends on #2317 and #2283.

Part of PSQL-1530.

postgres_prestart.sh's handle_extension_versions() now delegates to site-extensions-update instead of looping switch_<ext>_version per extension.

Also fixes drift in postgresql.service: it had fallen out of sync with salt's live copy of the unit (ExecStartPre missing the - ignore-failure prefix, ReadOnlyPaths missing /usr/local). Both now match what's actually deployed on the fleet.

Also blocked on: Postgres's dynamic_library_path/extension_control_path needs the site-extensions profile path added (drafted in the PSQL-1530 issue's migration plan, not yet implemented).

…-update

postgres_prestart.sh's handle_extension_versions() now calls
site-extensions-update directly instead of looping switch_<ext>_version
per extension -- that resolve/download/install pipeline now lives in the
nix packages added by #2317. Manifest-missing guard preserved; failure is
non-fatal (matches existing behavior, and ExecStartPre already ignores
exit status via the -+ prefix).

Also fixes drift in postgresql.service: it had fallen out of sync with
salt's live copy of the unit (ExecStartPre missing the "-" ignore-failure
prefix, ReadOnlyPaths missing /usr/local). Both now match what's actually
deployed on the fleet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant