Share via

Postgresql upgradation from 16 to 18

Bobby John 60 Reputation points
2026-03-30T15:05:18.95+00:00

Trying to upgrade the postgresql from 16 to 18. Can you help us here ?

Error as below:

{

"code": "MajorVersionUpgradeFailedPrecheck",

"message": "The major version upgrade failed precheck. Upgrading extension hypopg in database postgres from source version 15 to target version 18 is not supported. Refer documentation - https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-major-version-upgrade#extension-limitations"

}

#postresql

Azure Database for PostgreSQL

2 answers

Sort by: Most helpful
  1. SAI JAGADEESH KUDIPUDI 1,600 Reputation points Microsoft External Staff Moderator
    2026-03-30T15:23:51.68+00:00

    Hi Bobby John,
    The upgrade is blocked because unsupported extensions are present.

    • hypopg is a non‑persistent utility extension
    • Such extensions must be dropped before a major version upgrade
    • This is by design in Azure Database for PostgreSQL

    Action required:

    DROP EXTENSION hypopg;

    Run the upgrade, then re‑create the extension after upgrade if it’s supported on PostgreSQL 18.

    Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.

     Please do not forget to  "Accept Answer" and "up-vote" wherever the information provided helps you, as this can be beneficial to other community members.  

     


  2. Q&A Assist
    2026-03-30T15:05:34.1366667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The precheck is failing because the hypopg extension is present. hypopg is a non-persistent utility extension and must be dropped before an in-place major version upgrade, then recreated afterward.

    To proceed with the upgrade from PostgreSQL 16 to 18 on Azure Database for PostgreSQL flexible server:

    1. Connect to the server as an admin role.
    2. For each database where hypopg is installed (the error shows at least postgres):
         
         DROP EXTENSION IF EXISTS hypopg;
      
    3. Re-run the in-place major version upgrade (via Portal or az postgres flexible-server upgrade).
    4. After the upgrade completes successfully, reconnect to each database that needs hypopg and recreate it if it is supported on the target version:
         
         CREATE EXTENSION hypopg;
      

    If any other blocking extensions are present (for example timescaledb or postgres_fdw), they must also be removed before retrying the upgrade.


    References:

    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.