wal_keep_size

A configuration parameter determining the minimum amount of WAL to retain

wal_keep_size is a configuration parameter determining the minimum amount of WAL (expressed in MB) to retain in the pg_wal directory.

wal_keep_size was added in PostgreSQL 13, replacing wal_keep_segments for consistency with the newly-added max_slot_wal_keep_size parameter.

Default value

The default value for wal_keep_size is: 0.

Change history

Categories

GUC configuration item, WAL

See also

max_slot_wal_keep_size, max_wal_size, min_wal_size