June 2024
Intermediate to advanced
456 pages
11h 34m
English
A reference for relevant psql meta-commands:
| Meta-Command | Description |
|---|---|
\l | List databases. This is the letter “l” and not the number 1. |
\d | Describe table |
\dn+ | Describe schemas (namespaces) |
\dt | Describe all tables |
\dv | Describe views |
\d+ | Describe definition when used with a view |
\x | Toggle expanded display |
\! clear | Clear the screen |
\set | Set a psql variable (see following section) |
\e | Edit queries in EDITOR |
\df | Describe functions |
\dx | Describe extensions |
\di * | Describe indexes that match pattern, e.g. \di index_users* |
\dRs+ | Describe subscriptions |
Read now
Unlock full access