How to change the owner of a Redshift database

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;
See also  How to create a group and add users to group in Redshift