max_slot_wal_keep_size
Best of Vietnam 13 Day North to South Tour
Summary We are using max_slot_wal_keep_size from Postgresql 13 to prevent master from being killed by a lagging replication.
Working with read replicas for Amazon RDS for PostgreSQL
The last two states are seen only when max_slot_wal_keep_size is non-negative. If restart_lsn is NULL, this field is null.
Supabase CLI config
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.