IO:WALInitWrite

When the system needs a new WAL segment and there are no old segments available to recycle, it must create a new one. During this process, PostgreSQL "initializes" the file by filling it with zeros. The WALInitWrite event specifically tracks the time spent waiting for the disk write portion of this zero-filling process.

How to Reduce WALInitWrite Waits