pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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-0007JS-Gc@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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0188bb82531f1b0ae3648fb81a4bd4a4f6242127

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(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1jo9wu-0007JS-Gc@gemulon.postgresql.org>
Permalink:  ../E1jo9wu-0007JS-Gc@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jo9wu-0007JS-Gc@gemulon.postgresql.org

 · 

reply

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-0007JS-Gc@gemulon.postgresql.org>
  References: <E1jo9wu-0007JS-Gc@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