Postgres at any scale
summary
Practical checklist for running Postgres: use native types (prefer JSONB over plain JSON), add constraints and validate at the DB, learn psql and save queries, and test backups regularly — logical pg_dump is OK early but switch to physical backups (wal‑e/wal‑g or barman) at larger sizes. Enable pg_stat_statements to find hot queries, aim for a 99% cache hit ratio and ~95% index hit rate on tables >10k rows, create indexes concurrently, and use PG bouncer or app pooling before scaling.
AI-written summary · about
chapters (18)
- 0:00Introduction and audience
- 1:07Starting small with Postgres
- 3:13Leveraging data types and constraints
- 5:43Mastering psql and backups
- 7:27Medium-scale configuration
- 8:33Cache hit ratio and memory
- 9:18Index hit rate and query optimization
- 10:22Understanding query plans
- 12:49Monitoring with pg_stat_statements
- 14:35Postgres index types explained
- 17:50Index tips and trade-offs
- 19:54Safe migrations and null handling
- 20:59Scaling to large datasets
- 21:40Connection pooling necessity
- 22:42Read replicas and replication lag
- 24:29Sharding strategies
- 26:40Backup types and scaling
- 27:46Recap and best practices
