Hi Rohit Gandhi M,
Thanks for approaching Microsoft Q&A!
Before performing a major upgrade, Azure conducts pre-check operations. If these checks fail (for instance, due to unsupported configurations or extensions), the upgrade does not proceed. You might want to check if your server has any read replicas enabled, unsupported extensions, or specific configurations that could be blocking the upgrade.
Please go through this document for limitations and the pre requisites
https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-major-version-upgrade
Could you please confirm the below detail.
- Can you please tell which exact version you are trying to upgrade 13 or 14 or 15 or 16 or 17?
- Please confirm which region you are current PostgreSQL server presents?
whenever you deploy any server please check the service health of the resource and azure status in that region so that you will get to know whether there is any ongoing issues on that region.
Limitations:
In-place major version upgrades do not support all PostgreSQL extensions. The upgrade will fail during the precheck if unsupported extensions are found.
- The following extensions are supported for regular use, but will block an in-place major version upgrade if present. Remove them before the upgrade and re-enable them after, if supported on the target version:
timescaledb,dblink,orafce,postgres_fdw. - The following extensions are non-persistent utility extensions and will need to be dropped and re-created after the upgrade by design:
pg_repack,hypopg. - When upgrading to PostgreSQL 17, the following extensions are not supported and must be removed before upgrade. You may re-enable them only if supported on the target version:
age,azure_ai,hll,pg_diskann,pgrouting.
Note: If any of these extensions appear in the azure.extensions server parameter, the upgrade will be blocked. Remove them from the parameter before starting the upgrade.
Kindly consider upvoting if the provided information helpful, please let us know if you have further queries on this happy to help you.
Thanks!
Kalyani