PostgreSQL version upgrade blocked

Julia 40 Reputation points
2026-07-04T05:52:27.4766667+00:00

I'm trying to upgrade Azure Database for PostgreSQL Flexible Server (locelle-stg-cac-db) from version 11 to 16. The upgrade fails because a role azure_pg_failover_slots_validator has the replication attribute which cannot be removed without superuser access. How can Azure support remove this attribute so the upgrade can proceed?

Azure Database for PostgreSQL

Answer accepted by question author

Christos Panagiotidis 2,106 Reputation points
2026-07-17T11:17:08.5566667+00:00

The role azure_pg_failover_slots_validator is created and owned by Azure's pg_failover_slots integration. It is not a customer role, and Flexible Server does not grant full PostgreSQL superuser access. Do not drop or alter it.

Run the major-version upgrade validation check and confirm this is the only blocker. Check whether pg_failover_slots is enabled in shared_preload_libraries. If you enabled the module and no longer use it, remove it from shared_preload_libraries, restart the server, remove the extension from each database where it is installed, and rerun validation. Test this on a point-in-time-restored server first.

If the module is not enabled, or validation still reports the Azure-managed role, the issue is not customer-remediable. Update your Azure support request with the server resource ID, source and target versions, validation output, operation correlation ID, and UTC timestamp. Ask the PostgreSQL Flexible Server team to correct the stale managed-role attribute. Rerun validation before attempting the upgrade again.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

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.