List all database names

Sections

Use these instructions to list all database names.

To generate a list of database names:

  1. Assume the pe-postgres user:
    sudo su - pe-postgres -s /bin/bash
  2. Open the PostgreSQL command-line:
    /opt/puppetlabs/server/bin/psql
  3. List the databases:
    \l
  4. Exit the PostgreSQL command line:
    \q
  5. Log out of the pe-postgres user:
    logout
How helpful was this page?
Puppet sites use proprietary and third-party cookies. By using our sites, you agree to our cookie policy.