List the databases on a PostgreSQL/PgSQL server

Contributor Icon Contributed by Rex Date Icon December 16, 2003  
Tag Icon Tagged: PostgreSQL PgSQL


From within the psql monitor, use the following command to list all of the databases in the server:

\l

Alternatively, you can list the databases from the command line using:

psql -l

Previous recipe | Next recipe |
 
  • rogerdpack
    worked like a charm
blog comments powered by Disqus