# DB Reliability

> Operate the database reliably: pool connections with sane limits, choose the isolation level deliberately (knowing its anomalies), keep transactions short, route replica reads carefully, and test restores — a backup is only real if you've restored it.

- Skill: `mcorbett51090/db-reliability` (Agent Skill)
- Install (CLI): `npx get-skill add mcorbett51090/db-reliability`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mcorbett51090/db-reliability/raw
- Safety review: pending (external: skill-scanner PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: mcorbett51090 (https://skillmd.com/u/mcorbett51090)
- Updated: 2026-11-19
- Page: https://skillmd.com/skills/mcorbett51090/db-reliability

---


# Database Reliability

## Pool connections
A pooler (PgBouncer/built-in) with sized limits — an app opening a connection per request exhausts the DB under load.

## Isolation
Read Committed / Repeatable Read / Serializable each permit different anomalies (non-repeatable read, phantom, write skew). **Choose**, and handle what you allow.

## Short transactions
Long txns hold locks, block vacuum, bloat. Keep the critical section minimal.

## Recovery
Replicas are eventually consistent (route read-after-write carefully). **Test the restore** + PITR if RPO demands. A backup you've never restored is a hope.

