New statistics for tuning WAL buffer size
Masahiro Ikeda <ikedamsh@oss.nttdata.com>
From: Masahiro Ikeda <ikedamsh@oss.nttdata.com>
To: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2020-08-18T07:21:26Z
Lists: pgsql-hackers
Hi, It's important to provide the metrics for tuning the size of WAL buffers. For now, it's lack of the statistics how often processes wait to write WAL because WAL buffer is full. If those situation are often occurred, WAL buffer is too small for the workload. DBAs must to tune the WAL buffer size for performance improvement. There are related threads, but those are not merged. https://www.postgresql.org/message-id/4FF824F3.5090407@uptime.jp https://www.postgresql.org/message-id/flat/CAJrrPGc6APFUGYNcPe4qcNxpL8gXKYv1KST%2BvwJcFtCSCEySnA%40mail.gmail.com What do you think? If we can have a consensus, I will make a PoC patch. Regards, -- Masahiro Ikeda NTT DATA CORPORATION
Commits
-
Add pg_stat_wal statistics view.
- 8d9a935965f0 14.0 landed