· 8 min · PostgreSQL

All Your GUCs in a Row: restore_command

PostgreSQL's `restore_command` asks for WAL segments one at a time until the command fails—and that failure marks the archive's end, whether it's real or not.

0 comments

· 7 min · PostgreSQL

All Your GUCs in a Row: restart_after_crash

When a PostgreSQL backend crashes, the postmaster can restart itself automatically or exit and wait for external intervention.

0 comments

· 5 min · PostgreSQL

All Your GUCs in a Row: reserved_connections

PostgreSQL 16's `reserved_connections` reserves slots for your monitoring and backup roles when the application exhausts the pool.

0 comments

· 5 min · PostgreSQL

All Your GUCs in a Row: remove_temp_files_after_crash

Anthropomorphic duck wearing a yellow hard hat and blue work shirt sweeps scattered papers from a highway while an overturned truck labeled "American Freight" spills its cargo nearby. Protect your disk from orphaned temporary files after a backend crash.

0 comments

· 8 min · PostgreSQL

All Your GUCs in a Row: recursive_worktable_factor

A duck stands on a classroom floor next to a stack of wooden and metal chairs, with a green chalkboard and wooden furniture visible in the background. PostgreSQL 15's `recursive_worktable_factor` helps you fix slow recursive CTEs by tuning a single estimate.

0 comments

· 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