Runbook — PostgreSQL
Inspect active connections before maintenance.
Health
bash
sudo systemctl status postgresqlConnections
Disk
bash
df -hBackup Before Risky Changes
Always create a verified backup before:
- destructive migrations
- ownership changes
- restore operations
- major data repair
- production imports
Restore Principle
Restore to a controlled target first when practical.
Verify:
- database owner
- schema owner
- application role
- privileges
- extensions
- migration state
before returning the database to application traffic.
Something wrong or missing on this page?Report a docs issue