
In PostgreSQL, every write starts in the WAL before it's flushed to disk. CHECKPOINT is the command that forces that flush - settling all pending writes and bringing the database to a known-good state. Until Postgres 19, it had one speed: all of it, right now, block until done.
Shaun Thomas covers planned changes to CHECKPOINT within PG19 in his latest PG Phriday - and it's one of those small-sounding additions that suddenly sounds far more relevant once you've watched a write storm take down a busy server.
There's two new options coming to checkpoints in the upcoming PostgreSQL major release. MODE SPREAD starts the checkpoint early and distributes the work across the available window instead of hammering through it all at once, while FLUSH_UNLOGGED lets you decide whether unlogged tables are even part of the flush.
MODE FAST is still there for when you actually want the blunt instrument - such as before a backup or before pg_upgrade, or between benchmark runs.
(And yes, there are benchmarks in the blog!)
Happy Phriday: 📖 hubs.ly/Q04pRM4z0
#postgresql #postgres #postgres19 #dba #database #pgEdge #opensource #pg19 #data #dataanalytics #programming #devcommunity #techcommunity #tech

English





















