Product P-05 / 08 / Downloadable $40 USD × 60 pages, no fluff

Postgres performance
playbook.

Indexing, query planning, replication, autovacuum, partitioning — condensed from years of production debugging. 60 pages, no fluff, worked examples on real data.

USD 40
One-time
60
Pages
8
Chapters
14
Worked examples

The stuff
that actually broke
for us.

Written from the postmortems, not the marketing site. Each chapter ends with a checklist.

A / Foundations

Indexing & EXPLAIN

B-tree, GIN, BRIN, partial, expression, covering — when each earns its place.

  • B-tree defaults + pitfalls
  • GIN + GIST JSONB, full-text
  • BRIN time-ordered
  • Partial indexes real saves
  • EXPLAIN ANALYZE read it right
B / Concurrency

Locks & MVCC

When concurrent writes go wrong, and how to see it.

  • Lock types with conflicts
  • Deadlock debugging pg_locks queries
  • Long-running tx and bloat
  • Serializable iso when to
  • Advisory locks patterns
C / Autovacuum

Autovacuum & bloat

Why your perfectly-indexed query is suddenly slow.

  • When to tune per-table
  • Index bloat detection
  • Wraparound how to prevent
  • Hot tables autovac aggressively
  • pg_repack safe usage
D / Scale

Replication & partitioning

When you can’t just buy a bigger box.

  • Streaming replication sync vs async
  • Logical replication for ETL
  • Native partitioning patterns
  • pg_partman rollover
  • Sharding when forced

Sixty pages, fourteen examples.

Each example is a real query, a real EXPLAIN, a real fix, a real measured improvement.

01

PDF playbook

60 pages, hyperlinked ToC, code snippets in monospace. Print-friendly.

02

14 worked examples

Each: the slow query, the EXPLAIN output, the diagnosis, the fix, the measured improvement.

03

Diagnostic SQL pack

The pg_stat / pg_locks / pg_indexes queries we use first when something is wrong.

04

Per-chapter checklist

Quick-reference: things to verify after deploying changes per chapter topic.

Things buyers ask
on the first call.

If something isn’t answered here, ask in your intro email — we keep this list short on purpose.

What Postgres version is this written for?+

14, 15, and 16. Notes for differences in 17 (beta at time of release). Older versions (12, 13) covered where the behavior differs materially.

Will this help with RDS / Aurora / Cloud SQL?+

Yes — most content is engine-level. We call out the specific places hosted Postgres differs (autovacuum tuning surface, replication topology, parameter group constraints).

Do you cover Citus / TimescaleDB / Yugabyte?+

Briefly. The book is core Postgres. We mention Timescale where time-series patterns benefit, but a full treatment of the distributed forks isn’t in scope.

Code in the examples — what language?+

SQL primarily. Where we show client code, it’s Python (psycopg) and Go (pgx). Patterns translate to other drivers.

Need it customized
for your team?

We do bespoke kits, too. Send a paragraph about the problem and we’ll come back inside 48 hours.

hello@kvb.dev Browse services