Run the below query to list all the databases in a Redshift cluster.
select oid as db_id, datname as db_name, datallowconn from pg_database;
Run the below query to list all the databases in a Redshift cluster.
select oid as db_id, datname as db_name, datallowconn from pg_database;