Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 279 Bytes

list-all-the-databases.md

File metadata and controls

15 lines (11 loc) · 279 Bytes

List All The Databases

There are two ways to list all the available databases. The first is a psql only command:

\list

The second approach is to query the pg_database table. Something like the following will suffice:

select datname from pg_database;