PostgreSQL drop role fails because of default privileges
问题 I am trying to drop a role 'xyz' that was previously the owner of the schema with the same name 'xyz'. I altered the schema ownership as below, and run reassigned ownership just in case (although all tables were created by a different user with superuser power). So I run all these: alter schema xyz owner to postgres; reassign owned by xyz to postgres; alter default privileges in schema seeds revoke all on tables from xyz cascade; alter default privileges in schema seeds revoke all on