How to find the list of databases within an AWS Redshift cluster

Arafat Nalkhande picture Arafat Nalkhande · Mar 21, 2017 · Viewed 11.1k times · Source

I want to list out all the existing databases within a Redshift cluster. How can I do that.

What SQL query can I fire such that it sends me a list of all the databases within the AWS cluster

Answer

avertocle picture avertocle · Mar 21, 2017

Please try this.

    SELECT * FROM pg_database;