\dn

Category: Databases & SQL

\dn

List schemas in the current database

Schemas are PostgreSQL's namespaces; public is the default one, and other schemas often hold app or extension objects. \dn+ adds owners and comments. Related: \dt lists tables within them.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.