Azure PostgreSQL flexible server: Unable to transfer ownership of table

Peter Koller 0 Reputation points
2024-04-10T15:49:08.4833333+00:00

We are using posgres 16.0.

When trying to transfer ownership of a table with

ALTER TABLE schema.table OWNER TO "new_role"

We get error: must be able to SET ROLE "new_role"

We are logged in as azure_pg_admin user and have confirmed this with

SELECT current_user
Azure Database for PostgreSQL
{count} votes

Accepted answer
  1. GeethaThatipatri-MSFT 27,417 Reputation points Microsoft Employee
    2024-04-17T16:42:19.56+00:00

    @Peter Koller Previously roles with CREATEROLE privileges could change many aspects of any non-superuser role. Such changes, including adding members, now require the role requesting the change to have ADMIN OPTION permission. For example, they can now change the CREATEDB, REPLICATION, and BYPASSRLS properties only if they also have those permissions.

    https://www.postgresql.org/docs/16/release-16.html

    Please follow the below steps here

    User's image

    Regards

    Geetha

    0 comments No comments

0 additional answers

Sort by: Most helpful