Back to Genai Toolbox

postgres-upgrade-precheck

docs/en/integrations/cloud-sql-admin/tools/cloudsqlpgupgradeprecheck.md

1.1.01.8 KB
Original Source

About

The postgres-upgrade-precheck tool initiates a pre-check on a Cloud SQL for PostgreSQL instance to assess its readiness for a major version upgrade using the Cloud SQL Admin API. It helps identify potential incompatibilities or issues before starting the actual upgrade process.

Compatible Sources

{{< compatible-sources >}}

Example

yaml
kind: tool
name: postgres-upgrade-precheck
type: postgres-upgrade-precheck
source: cloud-sql-admin-source
description: "Checks if a Cloud SQL PostgreSQL instance is ready for a major version upgrade to the specified target version."

Reference

fieldtyperequireddescription
typestringtrueMust be "postgres-upgrade-precheck".
sourcestringtrueThe name of the cloud-sql-admin source to use.
descriptionstringfalseA description of the tool.
parametertyperequireddescription
projectstringtrueThe project ID containing the instance.
instancestringtrueThe name of the Cloud SQL instance to check.
targetDatabaseVersionstringfalseThe target PostgreSQL major version for the upgrade (e.g., POSTGRES_18). If not specified, defaults to the PostgreSQL 18.