How do I get a list of all databases on pgsql/PostgreSQL?

Chris Burton

To get a list of all databases on PostgreSQL su to the postgres user:


su - postgres


Once you have switched to the postgres user simply issue the following command to list all databases.


psql -l

You should now see the full list of PostgreSQL databases on this system.


Tags: database, pgsql, postgres, postgresql
Average rating: 0 (0 Votes)

You cannot comment on this entry