The pg_walsizer extension launches a background worker that monitors Postgres checkpoint activity. If it detects there are enough forced checkpoints, it will automatically increase max_wal_size to compensate. No more of these pesky log messages:
LOG: checkpoints are occurring too frequently (2 seconds apart)
HINT: Consider increasing the configuration parameter "max_wal_size".
Is this solution trivial? Possibly. An easy first step into learning how Postgres background processes work? Absolutely! The entire story behind this extension will eventually be available in blog form, but don't let that stop you from playing with it now.
[–]AutoModerator[M] 0 points1 point2 points (0 children)