Binary read replicas in PostgreSQL, Part 3
Create replicas with a single command, but master the procedure for replacing a failed primary—that's where things get tricky and installations break.
recovery_prefetch
Standby lagging on network storage? `recovery_prefetch` lets WAL replay ask the kernel to read pages before it needs them, turning seventeen minutes of…
recovery_min_apply_delay
Delay a standby on purpose to keep a queryable copy of your database before the DELETE without a WHERE clause happened.
recovery_init_sync_method
After a crash, PostgreSQL syncs every file in your data directory before replaying any WAL—and on large clusters, this can consume minutes.
recovery_end_command
A hook that fires exactly once at promotion or restore completion—but the server is neither ready nor recovering while your command runs.
random_page_cost and seq_page_cost
The planner charges `random_page_cost` per index page based on how uncorrelated the index is—but the name lies.
quote_all_identifiers
Dumping across major versions? A reserved keyword can silently break constraints and policies.
primary_slot_name
Configure a replication slot name on your standby and the upstream keeps WAL forever—until the slot itself fills your disk or the standby dies holding an old…