Hi, On 2021-07-26 20:27:21 +0000, Bossart, Nathan wrote: > +1. I was confused by this when working on a WAL pre-allocation > patch [0]. Perhaps it could be replaced by a new parameter and a new > field in pg_stat_wal. How about something like log_wal_init_interval, > where the value is the minimum amount of time between reporting the > number of WAL segments created since the last report?
Why not just make the number in log_checkpoints accurate? There's no point in the current number, so we don't need to preserve it... Greetings, Andres Freund