PostgreSQL ERROR: role cannot be dropped because some objects depend on it

We are going to see the solution for “PostgreSQL ERROR: role cannot be dropped because some objects depend on it”

ERROR: role "james" cannot be dropped because some objects depend on it DETAIL: owner of database emp 6 objects in database r2schools 1 object in database postgres 3 objects in database newdb 3 objects in database emp

PostgreSQL ERROR:  role cannot be dropped because some objects depend on it

Solution:
Continue reading PostgreSQL ERROR: role cannot be dropped because some objects depend on it

How to change owner of database in PostgreSQL

In this tutorial, we will see How to change owner of database in PostgreSQL. We can change the database owner by using ALTER DATABASE command. If we change the owner name, only database owner name will cnage. But not objects(tables, views,…) owners.

Syntax to change the owner of the database in PostgreSQL: Continue reading How to change owner of database in PostgreSQL