Save slot's restart_lsn when invalidated due to size
Alvaro Herrera <alvherre@alvh.no-ip.org>
Save slot's restart_lsn when invalidated due to size We put it aside as invalidated_at, which let us show "lost" in pg_replication slot. Prior to this change, the state value was reported as NULL. Backpatch to 13. Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com> Reviewed-by: Álvaro Herrera <alvherre@alvh.no-ip.org> Discussion: https://postgr.es/m/20200617.101707.1735599255100002667.horikyota.ntt@gmail.com Discussion: https://postgr.es/m/20200407.120905.1507671100168805403.horikyota.ntt@gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/replication/slot.c | modified | +1 −0 |
| src/backend/replication/slotfuncs.c | modified | +10 −1 |
| src/include/access/xlog.h | modified | +1 −1 |
| src/include/replication/slot.h | modified | +3 −0 |
| src/test/recovery/t/019_replslot_limit.pl | modified | +1 −1 |
Discussion
- Restricting maximum keep segments by repslots 143 messages · 2017-02-28 → 2020-06-20
- Review for GetWALAvailability() 38 messages · 2020-06-12 → 2020-06-27