After Postgresql flexible migration from 14 to 16 admin user can't ALTER other role anymore

Davi, Thomas 0 Reputation points
2024-05-21T09:38:21.5333333+00:00

Since migrating my flexible server to postgresql version 16 my admin user can't modify roles anymore.
With version 16 it's mandatory to have WITH ADMIN OPTION on roles to be able to alter them. My problem is that it wasn't the case on version 14 and my admin user doesn't have this option before the migration.
The problem is that we can't add this option after the migration andit is not possible to rollback to version 14 of postgresql. Although in Azure it's not possible to log as a superuser so I'm really blocked right now.

Does anyone has encouter the same issue with migration to postgresql 16 and do you have a solution or workaround for this problem.

Thanks for your help.

Azure Database for PostgreSQL
{count} votes

1 answer

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 28,142 Reputation points Microsoft Employee
    2024-05-22T19:13:05.47+00:00

    @Davi, Thomas Thanks for sharing additional information, yes this is part of Postgres 16 limitation which you can go through here https://www.postgresql.org/docs/16/release-16.html

    To resolve your issue, you can modify the role as shown sample below, let me know if you find any issue.

    User's image

    Regards

    Geetha