From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Save slot's restart_lsn when invalidated due to size
Date: Wed, 24 Jun 2020 18:16:40 +0000
Message-ID: <E1jo9wu-0007JT-H6@gemulon.postgresql.org> (raw)
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
Branch
------
REL_13_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/12e52ba5a76e56aacdfbbb269e6b45c53d80c477
Modified Files
--------------
src/backend/replication/slot.c | 1 +
src/backend/replication/slotfuncs.c | 11 ++++++++++-
src/include/access/xlog.h | 2 +-
src/include/replication/slot.h | 3 +++
src/test/recovery/t/019_replslot_limit.pl | 2 +-
5 files changed, 16 insertions(+), 3 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: alvherre@alvh.no-ip.org
Subject: Re: pgsql: Save slot's restart_lsn when invalidated due to size
In-Reply-To: <E1jo9wu-0007JT-H6@gemulon.postgresql.org>
References: <E1jo9wu-0007JT-H6@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox