Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 768
Arafat Nalkhande Avatar asked Mar 21 '17 07:03

Arafat Nalkhande


People also ask

How do I get a list of all Redshift databases?

If you don't see Database Navigator tab than click on the Window -> Database Navigator.

How do I check my Redshift database?

To query databases hosted by your Amazon Redshift cluster, you have two options: Connect to your cluster and run queries on the AWS Management Console with the query editor. If you use the query editor on the Amazon Redshift console, you don't have to download and set up a SQL client application.

How many databases are in Redshift cluster?

Amazon Redshift enforces these limits for databases: Maximum of 60 user-defined databases per cluster.

Can a Redshift cluster have multiple databases?

Data is organized across multiple databases in Amazon Redshift clusters to support multi-tenant configurations. However, you often need to query and join across these datasets by allowing read access.


1 Answers

Please try this.

    SELECT * FROM pg_database;
like image 102
avertocle Avatar answered Oct 12 '22 11:10

avertocle