Below is the command to change the owner of a database. You need to login as superuser to run the below command.
ALTER DATABASE db_name OWNER TO new_owner;
Below is the command to change the owner of a database. You need to login as superuser to run the below command.
ALTER DATABASE db_name OWNER TO new_owner;