· 13 min · PostgreSQL

All Your GUCs in a Row: the recovery_target parameters

Duck with iridescent green head and brown body perched on a hospital bed, looking up at a January calendar hanging on the wall with dates circled in red. Restore to the moment before the disaster using eight parameters that answer where replay stops, which timeline to follow, and what to do when you get there.

0 comments

· 16 min · PostgreSQL

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.

0 comments

· 10 min · PostgreSQL

All Your GUCs in a Row: recovery_prefetch

Composite illustration of a duck and pigeon on a park bench, the duck wearing white cast boots and playing tennis with a ball, the pigeon flying nearby in a tree-lined park. Standby lagging on network storage? `recovery_prefetch` lets WAL replay ask the kernel to read pages before it needs them, turning seventeen minutes of…

0 comments

· 19 min · PostgreSQL

Binary read replicas in PostgreSQL, Part 2

Read replicas are one tool, but tuning a replica for one job and sending it another is a recipe for conflict.

0 comments

· 10 min · PostgreSQL

All Your GUCs in a Row: recovery_min_apply_delay

Two waterfowl stand at a wooden desk in a WPA Employment Office, with vintage New Deal posters on the wall behind them. Delay a standby on purpose to keep a queryable copy of your database before the DELETE without a WHERE clause happened.

0 comments

· 18 min · PostgreSQL

Binary read replicas in PostgreSQL, Part 1

A read replica is a PostgreSQL server in permanent recovery that accepts queries—and nearly every surprise it causes follows from that fact.

0 comments

· 8 min · PostgreSQL

All Your GUCs in a Row: recovery_init_sync_method

Illustrated duck sitting in bed wearing a blue ice pack on its head and holding a thermometer in its beak. After a crash, PostgreSQL syncs every file in your data directory before replaying any WAL—and on large clusters, this can consume minutes.

0 comments

· 7 min · PostgreSQL

All Your GUCs in a Row: recovery_end_command

Costumed nurse duck in scrubs pushing a wheelchair holding a mallard duck, with a female duck and ducklings on the sidewalk outside a hospital building. A hook that fires exactly once at promotion or restore completion—but the server is neither ready nor recovering while your command runs.

0 comments

· 8 min · PostgreSQL

All Your GUCs in a Row: random_page_cost and seq_page_cost

Duck standing on printouts of binary code and data, surrounded by floating sheets of numbers in a sunny outdoor setting. The planner charges `random_page_cost` per index page based on how uncorrelated the index is—but the name lies.

0 comments

· 7 min · PostgreSQL

All Your GUCs in a Row: quote_all_identifiers

Photograph of a mallard duck standing on a sheet of paper covered with vocabulary words in a classroom setting, with desks and a chalkboard blurred in the background. Dumping across major versions? A reserved keyword can silently break constraints and policies.

0 comments