Commands.app

\d

psql Commands

Describe table structure

Examples
Common usage examples

Show users table structure

\d users

Show detailed table info including storage

\d+ users

List indexes

\di

List sequences

\ds
Notes
  • \d without argument lists all relations
Related Commands
You might also find these useful