PostgreSQL
PostgreSQL from zero to production on a three-node cluster: MVCC, isolation, indexes, point-in-time recovery, automatic failover with Patroni, PgBouncer, security, load testing, failure drills and monitoring, all measured in labs.
Row-oriented OLTP database
PostgreSQL from zero to production on a three-node cluster: MVCC and VACUUM, isolation anomalies, indexes and the planner, WAL and point-in-time recovery with pgBackRest, streaming replication and automatic failover with Patroni and etcd, PgBouncer, security, load testing, failure drills, upgrades, and monitoring, all measured in labs.
- 12
- chapters
- 43
- sections
- 18
- figures
- 1Why PostgreSQLWhat problem it solves, and when it's the wrong choice.1 sections0 figuresself-test
- 2FoundationsGet it running, understand the process model, and write your first schema.4 sections1 figuresself-test
- 3Data TypesChoosing the right shape for your data, including JSONB and arrays.2 sections0 figuresself-test
- 4Storage InternalsHow Postgres actually stores rows on disk, and why old ones stick around.4 sections2 figuresself-test
- 5Transactions & ConcurrencyIsolation levels, locks, and what blocks what.3 sections2 figuresself-test
- 6Indexing & Query PlanningMaking the planner choose the fast path.4 sections1 figuresself-test
- 7SQL & QueryingJoins, windows, views, and partitioning.4 sections0 figuresself-test
- 8WAL, Vacuum & RecoveryThe log that makes crash recovery and backups possible, and the cleanup that keeps tables lean.4 sections1 figuresself-test
- 9Replication & ScalingRunning it across machines, safely, over time.6 sections5 figuresself-test
- 10Security & OpsUsers, permissions, and day-to-day configuration.4 sections2 figuresself-test
- 11Monitoring & PerformanceWatching it run, tuning it, and what breaks in production.6 sections4 figuresself-test
- 12CapstoneRun a real application's database on the cluster, end to end.1 sections0 figures