Share via

Attempt to upgrade Azure Database for PostgreSQL fails pre-check

Andrew Reid 40 Reputation points
2026-01-21T19:41:29.0166667+00:00

Trying to upgrade our PostgreSQL server's major version number using the "upgrade" button from within the Portal view of this resource, but it fails the precheck. Copied the error message below. We'd like to upgrade to version 17. Thank you.

{

"message": "The major version upgrade failed precheck."

}

Azure Database for PostgreSQL
0 comments No comments
{count} votes

Answer accepted by question author
  1. Manoj Kumar Boyini 9,645 Reputation points Microsoft External Staff Moderator
    2026-01-21T20:49:18.52+00:00

    Hi Andrew Reid

    We reviewed the backend logs for the major version upgrade from PostgreSQL version 14 to version 17 and observed that the operation was blocked during the pre-check phase. The failure is related to the extension pg_failover_slots, which is currently configured under shared_preload_libraries. At present, upgrading this library from version 14 to 17 is not supported, which is preventing the major version upgrade from proceeding.  

    To move forward, the pg_failover_slots entry will need to be removed from shared_preload_libraries before reinitiating the upgrade. You have removed the pg_failover_slots from shared_preload_libraries, and now the server has successfully upgraded to version 17.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Q&A Assist
    2026-01-21T19:41:36.5333333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The error message indicating that the major version upgrade failed precheck suggests that there are compatibility issues or unsupported configurations in your current setup. Here are some common reasons why the precheck might fail when attempting to upgrade to version 17:

    1. Unsupported Server Configurations: Ensure that there are no read replicas present, as they must be deleted before the upgrade. Additionally, check your network traffic rules to ensure that they allow traffic on the necessary ports (5432 and 6432).
    2. Logical Replication Slots: If you are using logical replication slots, they are not supported during the upgrade process.
    3. Storage Type: Ensure that your server is not using SSDv2 storage, as it is not eligible for major version upgrades.
    4. Extensions: Certain PostgreSQL extensions may block the upgrade. You need to remove unsupported extensions before proceeding with the upgrade.
    5. Configuration Issues: Check if your server's configurations, such as authentication methods or event triggers, are compatible with version 17.

    To resolve the issue, review the detailed error message from the precheck logs, which should provide more specific information about what is causing the failure. Address the identified issues and try the upgrade again.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.