Skip to content

Commit 469717e

Browse files
committed
fix: continue to use previous way to read old pg version in upgrade script
1 parent 0fddd47 commit 469717e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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
@@ -41,7 +41,7 @@ LOG_FILE="/var/log/pg-upgrade-initiate.log"
4141

4242
POST_UPGRADE_EXTENSION_SCRIPT="/tmp/pg_upgrade/pg_upgrade_extensions.sql"
4343
POST_UPGRADE_POSTGRES_PERMS_SCRIPT="/tmp/pg_upgrade/pg_upgrade_postgres_perms.sql"
44-
OLD_PGVERSION=$(pg_config --version | sed 's/PostgreSQL \([0-9]*\.[0-9]*\).*/\1/')
44+
OLD_PGVERSION=$(run_sql -A -t -c "SHOW server_version;")
4545

4646
# Skip locale settings if both versions are PostgreSQL 17+
4747
if ! [[ "$OLD_PGVERSION" =~ ^17.* && "$PGVERSION" =~ ^17.* ]]; then

ansible/vars.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ postgres_major:
99

1010
# Full version strings for each major version
1111
postgres_release:
12-
postgresorioledb-17: "17.0.1.084-orioledb"
13-
postgres17: "17.4.1.034"
14-
postgres15: "15.8.1.091"
12+
postgresorioledb-17: "17.0.1.085-orioledb"
13+
postgres17: "17.4.1.035"
14+
postgres15: "15.8.1.092"
1515

1616
# Non Postgres Extensions
1717
pgbouncer_release: "1.19.0"

0 commit comments

Comments
 (0)