A fast-growing AI-native SaaS team we worked with alongside Supabase was writing 1.8 TB of WAL a day. That number alone made the database look like the ceiling. When we broke it down, about 39% of that WAL was full-page-image overhead. It didn’t come from the application, the platform or the workload. It came from a five-minute checkpoint default.
This post walks through why that happens, how to check whether it’s happening to you, and what to do about it. Everything here applies to PostgreSQL on Supabase and on any other platform.
What a checkpoint does
PostgreSQL writes every change to the write-ahead log (WAL) before it touches the data files. That’s what makes crash recovery possible. A checkpoint is the moment PostgreSQL flushes all dirty pages from memory to disk, so that recovery only has to replay WAL written after that point.
Checkpoints happen when either of two limits is reached: checkpoint_timeout (five minutes by default) or max_wal_size. On a busy system with a reasonably sized max_wal_size, the timer usually wins, so you get a checkpoint every five minutes, all day.
Why frequent checkpoints inflate WAL
With full_page_writes on (the default, and you should leave it on), the first time a page is modified after a checkpoint, PostgreSQL writes the entire 8 kB page into WAL, not just the change. That protects against torn pages if the server crashes mid-write.
Every checkpoint resets that “first modification” clock for every page. So if your hot tables and indexes get touched constantly, each checkpoint triggers a fresh wave of full-page images. A single-row UPDATE that changes a few bytes can cost a full 8 kB in WAL, every five minutes, for every page it lands on. Multiply that across busy tables and their indexes and you get exactly what we saw: more than a third of the WAL stream spent on page copies.


More WAL means more disk I/O, more storage for archives and backups, more data shipped to replicas and slower recovery. It ends up looking like “the database can’t keep up.”
How to check your own system
You don’t need special tooling to get a first read.
- On PostgreSQL 14 and later,
pg_stat_walshowswal_records,wal_fpi(full-page images) andwal_bytes. Sample it twice, an hour apart, and compare the full-page images to total records and bytes. pg_waldump --statson a WAL segment breaks down bytes by record type and shows how much is full-page images.- Check how checkpoints are triggered. In
pg_stat_bgwriter(orpg_stat_checkpointeron PostgreSQL 17), compare timed checkpoints with requested ones. Mostly timed, every five minutes, on a write-heavy system is the pattern to look for. - Turn on
log_checkpointsif it isn’t already. Each log line tells you how long the checkpoint took and how much it wrote.
Not sure what your checkpoint and WAL settings are costing you?
Our PostgreSQL Health Check reviews your configuration, storage and I/O, and maintenance practices, then gives you a prioritized report of what to change first, in about 5 days.
What to change, and what to weigh
The usual fix is to space checkpoints out: raise checkpoint_timeout (often to 15 to 30 minutes on a busy system) and raise max_wal_size so the size limit doesn’t trigger them early instead. Keep checkpoint_completion_target at 0.9 so the flush is spread across the interval rather than arriving as a spike.
This is a trade-off, not a free lunch. Longer intervals mean more WAL to replay after a crash, so recovery takes longer. That’s why we don’t recommend a generic number. Pick the interval from your recovery time objective, test it, and measure. On that engagement, the pending checkpoint change was projected to cut daily WAL by roughly another 25%.
On Supabase, some of these settings need a restart or help from Supabase’s team. Plan the change with them rather than around them.
Checkpoints aren’t the only lever
WAL volume also comes from how the application writes. Two things showed up alongside the checkpoint default:
- Fillfactor and autovacuum weren’t matched to the busiest tables. Leaving free space on each page lets PostgreSQL do HOT updates, which skip index writes entirely. After tuning fillfactor on four high-churn tables and adjusting autovacuum, the HOT-update rate rose by as much as 15.59 points and the dead-row ratio on the most improved table dropped 99.6%, from 5.19% to 0.02%.
- UPDATEs were rewriting columns that hadn’t changed, and writes were sent one row at a time. Writing only what changed and batching writes both cut WAL at the source.
Two settings changes alone brought daily WAL down about 11%, from 1.8 TB to 1.6 TB, within about two weeks, and that was before the checkpoint change.
The bigger point
When WAL is high, disk I/O is climbing and the database looks like the limit, the instinct is to move to a bigger box or a different platform. In this case, none of the problems were platform limits. Every one of them would have followed the workload anywhere it went. The answer was inside the database, and the team stayed and kept scaling on Supabase.
Supabase makes it easy to start. Stormatics makes it easy to stay.
If your WAL or disk I/O is growing faster than your traffic, I’m happy to look at it with you.

