Skip to content

Commit 3e94626

Browse files
pcncsamrose
authored andcommitted
fix: install PG major version appropriate flake during upgrades
1 parent 79aee52 commit 3e94626

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
@@ -289,7 +289,7 @@ function initiate_upgrade {
289289
# shellcheck disable=SC1091
290290
source /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
291291
nix-collect-garbage -d > /tmp/pg_upgrade-nix-gc.log 2>&1 || true
292-
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)
292+
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)
293293
PGSHARENEW="$PG_UPGRADE_BIN_DIR/share/postgresql"
294294
fi
295295

0 commit comments

Comments
 (0)