By Alvin Alexander. Last updated: June 4, 2016
Postgresql list FAQ: How do I get a list of databases in a Postgresql database?
Just log into your Postgresql database (with the psql
command), and then run this command:
\l
(That's a backslash followed by the lowercase letter "L"). This command provides a nice list of all of the Postgresql databases.