Skip to content

Commit ef4a8f7

Browse files
committed
fix: install PG major version appropriate flake during upgrades
1 parent 5d9521b commit ef4a8f7

File tree

1 file changed

+1
-1
lines changed
  • ansible/files/admin_api_scripts/pg_upgrade_scripts

1 file changed

+1
-1
lines changed

ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ function initiate_upgrade {
287287
# shellcheck disable=SC1091
288288
source /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
289289
nix-collect-garbage -d > /tmp/pg_upgrade-nix-gc.log 2>&1 || true
290-
PG_UPGRADE_BIN_DIR=$(nix build "github:supabase/postgres/${NIX_FLAKE_VERSION}#psql_15/bin" --no-link --print-out-paths --extra-experimental-features nix-command --extra-experimental-features flakes)
290+
PG_UPGRADE_BIN_DIR=$(nix build "github:supabase/postgres/${NIX_FLAKE_VERSION}#psql_${PGVERSION}/bin" --no-link --print-out-paths --extra-experimental-features nix-command --extra-experimental-features flakes)
291291
PGSHARENEW="$PG_UPGRADE_BIN_DIR/share/postgresql"
292292
fi
293293

0 commit comments

Comments
 (0)