pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Save slot's restart_lsn when invalidated due to size
2+ messages / 1 participants
[nested] [flat]

* pgsql: Save slot's restart_lsn when invalidated due to size
@ 2020-06-24 18:16 Alvaro Herrera <alvherre@alvh.no-ip.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Alvaro Herrera @ 2020-06-24 18:16 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.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

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Save slot's restart_lsn when invalidated due to size
@ 2020-06-24 18:16 Alvaro Herrera <alvherre@alvh.no-ip.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Alvaro Herrera @ 2020-06-24 18:16 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.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

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2020-06-24 18:16 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-06-24 18:16 pgsql: Save slot's restart_lsn when invalidated due to size Alvaro Herrera <alvherre@alvh.no-ip.org>
2020-06-24 18:16 pgsql: Save slot's restart_lsn when invalidated due to size Alvaro Herrera <alvherre@alvh.no-ip.org>

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