]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Save slot's restart_lsn when invalidated due to size
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 24 Jun 2020 18:15:17 +0000 (14:15 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 24 Jun 2020 18:15:17 +0000 (14:15 -0400)
commit12e52ba5a76e56aacdfbbb269e6b45c53d80c477
treeb33a4d46713ebdadb9bc320edab0bf1725cbc2ec
parent411493d701e2f97e778dc1ff14fb7169eea2e94c
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
src/backend/replication/slot.c
src/backend/replication/slotfuncs.c
src/include/access/xlog.h
src/include/replication/slot.h
src/test/recovery/t/019_replslot_limit.pl