wal_keep_size

A GUC parameter determining the minimum amount of WAL (in MB) to retain

wal_keep_size is a GUC 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

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