max_slot_wal_keep_size

max_slot_wal_keep_size: Giới thiệu về chức năng Replication(đồng bộ dữ liệu) của .... Supabase CLI config. Best of Vietnam 13 Day North to South Tour. UGREEN NVMe Adapter, M.2 SSD M and M+B Key to NVMe PCIe 4.0 X4 ... .
ĐĂNG NHẬP
ĐĂNG KÝ
max_slot_wal_keep_size

2026-04-17


If max_slot_wal_keep_size is -1 (the default), replication slots may retain an unlimited amount of WAL files. Otherwise, if restart_lsn of a replication slot ...
To illustrate, assume max_wal_size is 1GB and max_slot_wal_keep_size is 5GB. As long as a slot’s WAL file requirement is within 1GB, it’s wal_status remains reserved.
Summary We are using max_slot_wal_keep_size from Postgresql 13 to prevent master from being killed by a lagging replication.
If the database parameter max_slot_wal_keep_size is set to a non default value, and the restart_lsn of a replication slot falls behind the current LSN by more than this size, the DMS task fails due to removal of required WAL files.