\l
List the databases in the server and show their names, owners, character set encodings, and access privileges. If pattern is specified, only databases whose names match the pattern are listed. If x is appended to the command name, the results are displayed in expanded mode. If + is appended to the command name, database sizes, default tablespaces, and descriptions are also displayed. Size information is available for databases on which the current user has CONNECT privilege, or if the current user is a superuser or has privileges of the pg_read_all_stats role.
Reading PG 18·Select a recorded version
- Client
- psql 18.7
- Case-sensitive spelling
- \l
- command
- \l
- manual path
- app-psql.html#APP-PSQL-META-COMMAND-LIST
- modifiers
- map[command:\l modifiers:x+], map[command:\list modifiers:x+]
- signature
- \l[x+] or \list[x+] [ pattern ]
- spellings
- \l, \list
Definition PG 18
\l[x+]or\list[x+] [pattern]List the databases in the server and show their names, owners, character set encodings, and access privileges. If
patternis specified, only databases whose names match the pattern are listed. Ifxis appended to the command name, the results are displayed in expanded mode. If+is appended to the command name, database sizes, default tablespaces, and descriptions are also displayed. Size information is available for databases on which the current user hasCONNECTprivilege, or if the current user is a superuser or has privileges of thepg_read_all_statsrole.
Exact case-sensitive spellings
\l\list
Spellings in this manual definition
Compare versions
Complete source facts
documentation revision
{"inputs":[{"file":"app-psql.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"af50448485df02bdef2b72b8347192ba029c7082b8d0392ecb17db44ad533aaf","version":"18.7"},{"file":"app-psql.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"cb475c53a16d9e06358f5e6c9c5649645db92568cfd319f230c62c9f57ae090b","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"}Source references
Full definition and evidence JSON
Definition sources
center · PostgreSQL 18 · 1b2d62b4845aa46374f2cb680f95d3392322cc8128646992ae4e18d0e7084915
Text language: en · 1b2d62b4845aa46374f2cb680f95d3392322cc8128646992ae4e18d0e7084915