--- since: 1.2.1 --- # Runbook — PostgreSQL ## Health ```bash sudo systemctl status postgresql ``` ## Connections Inspect active connections before maintenance. ## Disk ```bash df -h ``` ## Backup 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.