How to show PostgreSQL databases using psql and GUI tools
When working with multiple PostgreSQL databases at the same time, it is essential to know how to list them. It can be necessary when you are getting familiar with a new environment or performing server maintenance.
In this article, we are going to provide you with an illustrated guide on how to show all databases in PostgreSQL, filter them, and order them according to certain criteria. Keep reading to find out about:
- How to show databases from the command line
- What is the basic syntax
- How to filter the database list
- How to sort the database list
- What permissions are required to get the list of databases
- How to get and manage a database list with a PostgreSQL GUI tool