pgsql: Advance old-segment horizon properly after slot invalidation

2021-07-16 Thread Alvaro Herrera
Advance old-segment horizon properly after slot invalidation When some slots are invalidated due to the max_slot_wal_keep_size limit, the old segment horizon should move forward to stay within the limit. However, in commit c6550776394e we forgot to call KeepLogSeg again to recompute the horizon af

pgsql: Advance old-segment horizon properly after slot invalidation

2021-07-16 Thread Alvaro Herrera
Advance old-segment horizon properly after slot invalidation When some slots are invalidated due to the max_slot_wal_keep_size limit, the old segment horizon should move forward to stay within the limit. However, in commit c6550776394e we forgot to call KeepLogSeg again to recompute the horizon af

pgsql: Advance old-segment horizon properly after slot invalidation

2021-07-16 Thread Alvaro Herrera
Advance old-segment horizon properly after slot invalidation When some slots are invalidated due to the max_slot_wal_keep_size limit, the old segment horizon should move forward to stay within the limit. However, in commit c6550776394e we forgot to call KeepLogSeg again to recompute the horizon af