-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/doc: include extensions in postgresql upgrade script #392831
base: master
Are you sure you want to change the base?
Conversation
export OLDBIN="${ | ||
if cfg.extensions == [ ] then cfg.package else cfg.package.withPackages cfg.extensions | ||
}/bin" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC, this should be the same?
export OLDBIN="${ | |
if cfg.extensions == [ ] then cfg.package else cfg.package.withPackages cfg.extensions | |
}/bin" | |
export OLDBIN="${cfg.finalPackage}/bin" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I missed that this has been added 👍
989a2c5
to
4867d68
Compare
@@ -207,15 +207,15 @@ For an upgrade, a script like this can be used to simplify the process: | |||
export NEWBIN="${newPostgres}/bin" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least for pg_anon you need the extensions here as well.
Though this was IIRC the case where you also need specify shared_preload_libraries
yourself and this is maybe worth a mention and doesn't really need to be generalized here, does it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
newPostgres
is defined as this further up:
newPostgres = pkgs.postgresql_13.withPackages (pp: [
# pp.plv8
]);
You'd put the extensions here, right?
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.