PostgreSQL Configuration for Humans

bgwriter_lru_maxpages

Background writer maximum number of LRU pages to flush per round

In each round, no more than this many buffers will be written by the background writer. Setting this to zero disables background writing. (Note that checkpoints, which are managed by a separate, dedicated auxiliary process, are unaffected.) The default value is 100 buffers. This parameter can only be set in the postgresql.conf file or on the server command line.