[FC-42163] fc-postgresql: support upgrades with custom extensions #1191
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Upgrading postgresql to a new major with fc-postgresql fails when using custom extensions, defined via
services.postgresql.extraPlugins
.This patch modifies the relevant agent code to use a postgresql package WITH all needed plugins for upgrades:
--extension-names
.The original use-case of a customer was to upgrade postgresql to a newer version with
postgresqlPackages.anonymizer
installed (FC-42089). This is a little trickier since it requiresanon
to be listed inshared_preload_libraries
. For this, allshared_preload_libraries
are now extracted frompostgresql.conf
and passed topg_upgrade
via CLI. This code is based on the assumption that the oldpostgresql.conf
is generated by Nix and thus ignores all edge-cases, the postgresql config format may have.@flyingcircusio/release-managers
Release process
./changelog.sh
PR release workflow (internal)
Design notes
on
oroff
. Example: rate limiting.Security implications
pg_anon
is used) is kept during upgrades.