8000 fix: continue to use previous way to read old pg version in upgrade s… · supabase/postgres@413a82d · GitHub
[go: up one dir, main page]

Skip to content
< 8000 header class="HeaderMktg header-logged-out js-details-container js-header Details f4 py-3" role="banner" data-is-top="true" data-color-mode=light data-light-theme=light data-dark-theme=dark>

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 413a82d

Browse files
authored
fix: continue to use previous way to read old pg version in upgrade script (#1601)
1 parent 0fddd47 commit 413a82d

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)
0