Difference between revisions of "PostgreSQL: \list"

From wikieduonline
Jump to navigation Jump to search
m (Welcome moved page \list to PostgreSQL: \list)
Line 3: Line 3:
 
* https://www.postgresql.org/docs/13/app-psql.html
 
* https://www.postgresql.org/docs/13/app-psql.html
  
 +
Examples:
 
* <code>\l</code>
 
* <code>\l</code>
 
* <code>\list</code>
 
* <code>\list</code>

Revision as of 20:30, 20 April 2022

List all databases

Examples:

  • \l
  • \list
  • -l
  • --list


postgres-> \list
                                       List of databases
   Name    |   Owner    | Encoding |   Collate   |    Ctype    |       Access privileges
-----------+------------+----------+-------------+-------------+-------------------------------
 YOUR_DB | rds_master | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =Tc/rds_master               +
           |            |          |             |             | rds_master=CTc/rds_master   
 rdsadmin  | rdsadmin   | UTF8     | en_US.UTF-8 | en_US.UTF-8 | rdsadmin=CTc/rdsadmin
 template0 | rdsadmin   | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/rdsadmin                  +
           |            |          |             |             | rdsadmin=CTc/rdsadmin
 template1 | rds_master | UTF8     | en_US.UTF-8 | en_US.UTF-8 | rds_master=CTc/rds_master    +
           |            |          |             |             | =c/rds_master
(4 rows)


Related terms

See also

Advertising: