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 get the column names of a table in Redshift