psql Cheat Sheet
Deep psql reference for connection flags, slash commands, formatting, and automation.
Export
Copy the compact sheet, download it, or print it.
Download
`D` dense toggle · `C` copy all
## Connecting and Session Variables
## Formatting and Output Control
## Scripting and Automation
More in PostgreSQL
PostgreSQL Advanced Cheat Sheet
Replication, transactions, FDWs, extensions, and specialized PostgreSQL workflows.
PostgreSQL Performance Cheat Sheet
EXPLAIN, vacuum, planner settings, indexing, and practical tuning recipes.
PostgreSQL Backup and Restore Cheat Sheet
pg_dump, pg_restore, pg_dumpall, pg_basebackup, COPY, and migration workflows.
PostgreSQL Administration Cheat Sheet
Server lifecycle, utility commands, grants, monitoring, and cluster maintenance tasks.
PostgreSQL Cheat Sheet
Core PostgreSQL commands, SQL patterns, and object management for daily engineering work.