PostgreSQL, explained for people who build and operate real systems

Resilience · Practical field guide

Keep PostgreSQL available when it matters most.

A practical field guide to streaming replication, dependable backups, and recovery runbooks—so your high-availability plan works beyond the diagram.

  • Streaming replication
  • Point-in-time recovery
  • Failover runbooks

Secure checkout via Digistore24 · Digital delivery

Clear mental modelsPractical SQL examplesProduction-aware decisions

01 / What you'll learn

From guessing to understanding.

Build a mental model you can use at the keyboard, during a review, and when production asks a difficult question.

01

Design a resilient topology

Understand the roles of primaries, replicas, WAL, replication slots, and the connections between them.

02

Back up with recovery in mind

Choose between logical and physical backups, then connect your backup routine to a realistic restore process.

03

Measure replication health

Read lag, retention, and replica status without relying on guesswork or a dashboard alone.

04

Practice calm failover

Turn a stressful incident into a rehearsed sequence with clear decision points and verification steps.

PostgreSQL in context

See what your replica is doing.

Go beyond a green status light. Learn which PostgreSQL views and functions reveal replay progress, delay, and recovery state.

example.sql
SELECT application_name,
       state,
       replay_lag,
       sync_state
FROM pg_stat_replication;

02 / Inside the manual

A clear path through the details.

Move from core mechanics to practical decisions, with examples that connect the SQL to the reason behind it.

01

Replication from first principles

Follow a write from the primary to a replica. Configure streaming replication and understand synchronous and asynchronous behavior.

02

A backup is only the beginning

Work through base backups, WAL archiving, retention, and point-in-time recovery with recovery objectives in view.

03

Prepare for the day something breaks

Build failover and restoration runbooks, validate backups, and learn the checks that belong after recovery.

03 / Who it's for

Made for the person behind the query.

Useful when you know the basics and want to understand what happens next.

  • Developers responsible for production databases
  • Operators building a recovery strategy
  • Teams moving beyond a single PostgreSQL server

A manual to keep within reach

Read sequentially. Return selectively.

Use the guide as a learning path now and a practical reference later.

  • Follow the concepts in a deliberate order
  • Run and adapt the SQL examples
  • Revisit individual patterns when you need them

04 / Questions, answered

Before you dive in.

A few useful details about this guide and the purchase process.

Is this only for database administrators?

No. The guide starts with the mechanics behind each concept and connects them to the decisions developers and operators need to make.

What format is the manual?

This is a digital learning resource. After checkout, Digistore24 provides the access instructions associated with your purchase.

How do I receive my purchase?

Complete your order through the secure Digistore24 checkout. Delivery and access details are shown during checkout and sent using the email address you provide.

Volume 01 · Resilience

Ready to make PostgreSQL feel clearer?

Get Replication, Backups & High Availability and put the examples to work in your next database session.

Get this volume

Secure checkout via Digistore24 · Digital delivery