RefLib

Reference library for AI

Back

postgresql_16:3.11.4.6 Increase max_wal_size

PostgreSQL 16 > The SQL Language > Performance Tips > Populating a Database > Increase max_wal_size

Temporarily increasing the (see guc-max-wal-size) configuration variable can also make large data loads faster. This is because loading a large amount of data into PostgreSQL will cause checkpoints to occur more often than the normal checkpoint frequency (specified by the checkpoint_timeout configuration variable). Whenever a checkpoint occurs, all dirty pages must be flushed to disk. By increasing max_wal_size temporarily during bulk data loads, the number of checkpoints that are required can be reduced.

Back