Tools
Practical
By Samson Tanimawo, PhD
Published Nov 2, 2025
4 min read
PostgreSQL CLI Essentials
psql commands for incident response.
Live workflow · 3 working · 1 queuedLive
Signal · gather Working
Decide · pick action Working
Apply · with verify Working
Learn · update playbook Queued
Connect
psql -h host -U user dbname.
\\? for help.
Inspect
\\dt lists tables. \\d table describes a table.
\\du shows users.
Perf
EXPLAIN ANALYZE for query plans.
\\timing on shows query times.