WalWriterMain

When you see WalWriterMain, the process is essentially in its "main loop," idling until it is triggered to work again by a timer or by the volume of data reaching a certain threshold.
Default Sleep Cycles: The process sleeps for wal_writer_delay (default 200ms) before checking if it needs to flush data again.