PostgreSQL Topic Archive

Replication and WAL PostgreSQL Articles

Replica lag, WAL growth, failover readiness, hot standby behavior, and replication slots.

Unlogged Tables: The Honest Case for Skipping WAL
11 min read

One word took our nightly staging load from 40 minutes to 9: UNLOGGED. Two months later a failover emptied the table and nobody on call could explain why. The semantics are absolute — if someone tells you.

Stale Reads on Read Replicas: MySQL vs PostgreSQL
9 min read

Both MySQL and PostgreSQL replicas serve stale data by default. What differs is the toolbox: GTID waits and group replication consistency levels versus LSN tokens and remote_apply.

PostgreSQL Replication Slots: When Retained WAL Fills the Disk
12 min read

A decommissioned standby left its replication slot behind, and over one quiet weekend the slot pinned 214 GB of WAL until the primary ran out of disk and PANIC'd. Here is the mechanism, the monitoring queries, and the circuit breaker that caps the damage.

Unlogged Tables: The Honest Case for Skipping WAL
11 min read

One word took our nightly staging load from 40 minutes to 9: UNLOGGED. Two months later a failover emptied the table and nobody on call could explain why. The semantics are absolute — if someone tells you.

Stale Reads on Read Replicas: MySQL vs PostgreSQL
9 min read

Both MySQL and PostgreSQL replicas serve stale data by default. What differs is the toolbox: GTID waits and group replication consistency levels versus LSN tokens and remote_apply.