My PostgreSQL Quiz

The ultimate place to learn PostgreSQL!

Question #16: What is the command equivalent to psql -l from inside the psql prompt?

$ psql -l
 List of databases
 Name           |  Owner   | Encoding | Collate | Ctype |   Access privileges
 --------------------------+----------+----------+---------+-------+-----------------------
 demo                     | postgres | UTF8     | C       | C     |
 postgres                 | postgres | UTF8     | C       | C     |
 template0                | postgres | UTF8     | C       | C     | =c/postgres          +
 |          |          |         |       | postgres=CTc/postgres
 template1                | postgres | UTF8     | C       | C     | =c/postgres          +
 |          |          |         |       | postgres=CTc/postgres
 (5 rows)