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.wal_writer_delay (default 200ms) before checking if it needs to flush data again.