From 3f2b3e43c6be9ddc4c07f6fafaefc38c3b5ebdb2 Mon Sep 17 00:00:00 2001 From: priyanshi-yb Date: Tue, 24 Dec 2024 13:00:15 +0530 Subject: [PATCH] upgraded to pg17 in misc-migtests.yml --- .github/workflows/misc-migtests.yml | 6 ++++-- yb-voyager/src/srcdb/postgres.go | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/misc-migtests.yml b/.github/workflows/misc-migtests.yml index cd9fe7ad35..704e6a7dc8 100644 --- a/.github/workflows/misc-migtests.yml +++ b/.github/workflows/misc-migtests.yml @@ -12,7 +12,7 @@ jobs: services: postgres: - image: postgres:15 + image: postgres:17 env: POSTGRES_PASSWORD: secret # Set health checks to wait until postgres has started @@ -59,7 +59,9 @@ jobs: run: | cd installer_scripts yes | ./install-yb-voyager --install-from-local-source --only-pg-support - echo "/usr/lib/postgresql/16/bin" >> "$GITHUB_PATH" + sudo apt-get -y install postgresql-17 + sudo /usr/lib/postgresql/17/bin/pg_dump --version + echo "/usr/lib/postgresql/17/bin" >> "$GITHUB_PATH" env: ON_INSTALLER_ERROR_OUTPUT_LOG: Y diff --git a/yb-voyager/src/srcdb/postgres.go b/yb-voyager/src/srcdb/postgres.go index 34249fafda..5db4e2c86b 100644 --- a/yb-voyager/src/srcdb/postgres.go +++ b/yb-voyager/src/srcdb/postgres.go @@ -42,7 +42,7 @@ import ( const MIN_SUPPORTED_PG_VERSION_OFFLINE = "9" const MIN_SUPPORTED_PG_VERSION_LIVE = "10" -const MAX_SUPPORTED_PG_VERSION = "16" +const MAX_SUPPORTED_PG_VERSION = "17" const MISSING = "MISSING" const GRANTED = "GRANTED" const NO_USAGE_PERMISSION = "NO USAGE PERMISSION"