An Azure managed PostgreSQL database service for app development and deployment.
Hello **Gerald Tan
**Glad that the server is back to online state. But in future, if you have similar issue, the below steps will help you in finding the basic cause.
• Major-version upgrades can take anywhere from a few minutes to a couple of hours depending on your database size, workload and whether there were any pre-checks to run (extensions to drop, pending restarts, etc.).
• If after 2–3 hours you still see “upgrading major version” with no progress, it’s time to dig deeper.
• Make sure you’ve enabled the PostgreSQL flexible upgrade logs so you can see where it’s getting stuck. • In the Azure portal go to your flexible server > Server parameters > Enable “capture upgrade logs”.
Run pre-upgrade checks • Remove unsupported extensions or pending-restart configuration changes before you kick off the upgrade—those are common blockers.
• Verify no read replicas or logical replication slots exist.
In future if you face any such kind of issues, please reach out to us, we will help you in mitigating it.