Hi Tilen Rupnik,
We have investigated the Major version upgrade failure and we found that the upgrade is failing the server extensions. We observed that the extension 'dblink' and 'pg_stat_statements' causing the upgrade failure.
1.'dblink' extension exists on the database
2.'pg_cron' extension on database
3.'Pg_stat_statements' extension exists on all listed databases.
We suggest you to drop the extensions from the above databases manually and then disable the extension in azure.extensions(Server parameters). Once this is done, please retry the upgrade and share the results with us.
Note: please verify if there is any important data in the extensions before dropping and you can recreate the extension if needed after the Upgrade. you can use the command to drop the extension from each database
DROP EXTENSION <depending_extension> CASCADE;
Drop extensions | Microsoft Learn
If you have any other queries on this, please feel free to share them with us, we will check and assist you promptly. Thank you.