[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-19 (世界標準時間)。"],[],[],null,["# Database versions and version policies\n\n\u003cbr /\u003e\n\n[MySQL](/sql/docs/mysql/db-versions \"View this page for the MySQL database engine\") \\| PostgreSQL \\| [SQL Server](/sql/docs/sqlserver/db-versions \"View this page for the SQL Server database engine\")\n\n\u003cbr /\u003e\n\nThis page describes Cloud SQL's database version support policies.\n| **Important:** All Cloud SQL instances that are running community end-of-life (EOL) major versions of PostgreSQL are enrolled in extended support. If your instance is running an EOL major version, then you will be charged for extended support starting on May 1, 2025. For more information about extended support pricing, see [Pricing](/sql/docs/postgres/extended-support#pricing).\n\nDatabase versions supported by Cloud SQL\n----------------------------------------\n\nThe database engines supported by Cloud SQL include multiple versions.\nThe versions can vary in capabilities and in the types of issues that\narise. While performing an upgrade can impact your users,\nproviding up-to-date database features and important patches is also critical.\nCloud SQL keeps your instances up-to-date with patches and\nminor version updates automatically.\n\nMajor and minor versions supported by Cloud SQL\n-----------------------------------------------\n\nCloud SQL supports the following database versions.\n\n\\* From February 1, 2025 through April 30, 2025, Google has waived charges for extended support. Starting on May 1, 2025, all instances running on major versions that have reached end of life (EOL) will be charged for extended support.\n\n\u003cbr /\u003e\n\nTo avoid additional charges for extended support, we recommend that you\n[upgrade your instance](/sql/docs/postgres/upgrade-major-db-version-inplace) before May 1, 2025.\n\n\nCloud SQL database version format\n---------------------------------\n\n\nFor PostgreSQL 9.6, the first two numbers in the version number form the major\nversion, and the last number is the minor version. For example, for **version 9.6.1** , Cloud SQL uses\n**9.6** as the major version, and **1** as the minor version. For\nPostgreSQL 10 and later, the first number is the major version.\nFor example, for **version 10.1** , **10** is the major version,\nand **1** is the minor version.\n\n### How to identify the database version of your Cloud SQL instance\n\nYou specify the database version when you create a Cloud SQL instance.\nIf you don't specify a database version, then Cloud SQL uses the default\ndatabase version.\n\nTo view the database version of a Cloud SQL instance, do the following:\n\n1. In the Google Cloud console, go to the **Cloud SQL Instances** page.\n\n [Go to Cloud SQL Instances](https://console.cloud.google.com/sql)\n2. To open the **Overview** page of an instance, click the instance name.\n3. In the **Configuration** card, view the **Database version**.\n\nTo filter instances by a specific database version within your Cloud SQL project, do the following:\n\n1. In the Google Cloud console, go to the **Cloud SQL Instances** page.\n\n [Go to Cloud SQL Instances](https://console.cloud.google.com/sql)\n2. In the **Filter** field, select **Type**. The database versions that are within your project are listed.\n3. To filter the instances, select a database version within your project.\n\nTo view all Cloud SQL instances and their database versions in your organization,\nuse [Database Center](/database-center/docs/overview).\nYou can also switch views in Database Center from project\nto folders or organizations to get a complete list of all your\nCloud SQL instances.\nFor more information, see\n[Filter resources and export fleet inventory information](/database-center/docs/filter-resources-export-fleet-inventory-information).\n\nMajor version lifecycle\n-----------------------\n\nThis section describes the support lifecycle for major versions in Cloud SQL.\n\n### Regular support\n\nCloud SQL supports new major versions within 90 days of their general availability release by the database engine developer community. The first phase of this support is regular support. During regular support, Cloud SQL provides minor version and maintenance updates for the database engine. Cloud SQL also applies security fixes to the instances. Cloud SQL offers regular support for a major version as long as the database engine developer community supports the major version. After the major version reaches end-of-life (EOL) by the community, the major version enters extended support in Cloud SQL.\n\n\u003cbr /\u003e\n\n### Extended support\n\nFor Cloud SQL for PostgreSQL\nmajor versions that have\nreached their EOL, Cloud SQL offers extended\nsupport. Extended support lets you continue running your Cloud SQL\ninstances for three years even after the developer community stops supporting\nthe major versions on which the instances are running. Extended support\nis offered for three years.\nYou can use this time to plan, test, and perform the upgrade of your instances\nto a major version that is in regular support. For more information about\nperforming a major version upgrade, see\n[Upgrade the database major version in-place](/sql/docs/postgres/upgrade-major-db-version-inplace)\nand [Upgrade the database major version by migrating data](/sql/docs/postgres/upgrade-major-db-version-migrate).\n\nFor more information about\nextended support, see [Extended support in Cloud SQL](/sql/docs/postgres/extended-support).\n\n### Deprecation\n\nAfter extended support has ended for a specific major version, Cloud SQL\ndeprecates the major version. An instance running on a deprecated major version is\nupgraded to the default major and minor version for the database engine\nautomatically. Cloud SQL sends a deprecation notice to project\nowners at least 12 months before the deprecation date.\n\nFor Cloud SQL for PostgreSQL\nmajor versions, project owners receive a deprecation notice\nat the end of the second year of extended support.\n\nMinor version support\n---------------------\n\nCloud SQL supports new minor versions within 30 days of their general availability release by the database engine developer community. After Cloud SQL supports a new minor version, Cloud SQL provisions new instances on the new version automatically. During the next scheduled maintenance rollout, Cloud SQL upgrades existing instances to the new version.\n\n\u003cbr /\u003e\n\nCloud SQL determines the target minor version for each database engine.\nWhen the target minor version is different from the minor version for a\nCloud SQL instance, Cloud SQL upgrades that version during\nthe next maintenance cycle. You can control the day and time when maintenance\nrestarts occur by\n[setting a maintenance window](/sql/docs/postgres/set-maintenance-window)\nfor your instance.\n| **Note:** Cloud SQL might not support each new minor version released by the database engine developer. For example, Cloud SQL might not support a minor version that's found not to work well with Cloud SQL."]]