pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make pg_stat_wal_receiver consistent with the WAL receiver's shm
Date: Sun, 17 May 2020 00:30:04 +0000
Message-ID: <E1ja7Bs-0002XC-FF@gemulon.postgresql.org> (raw)

Make pg_stat_wal_receiver consistent with the WAL receiver's shmem info

d140f2f3 has renamed receivedUpto to flushedUpto, and has added
writtenUpto to the WAL receiver's shared memory information, but
pg_stat_wal_receiver was not consistent with that.  This commit renames
received_lsn to flushed_lsn, and adds a new column called written_lsn.

Bump catalog version.

Author: Michael Paquier
Reviewed-by: Álvaro Herrera
Discussion: https://postgr.es/m/20200515090817.GA212736@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2c8dd05d6cbc86b7ad21cfd7010e041bb4c3950b

Modified Files
--------------
doc/src/sgml/monitoring.sgml          | 12 ++++++++-
src/backend/catalog/system_views.sql  |  3 ++-
src/backend/replication/walreceiver.c | 48 ++++++++++++++++++++---------------
src/include/catalog/catversion.h      |  2 +-
src/include/catalog/pg_proc.dat       |  6 ++---
src/test/regress/expected/rules.out   |  5 ++--
6 files changed, 47 insertions(+), 29 deletions(-)



Message-ID: <E1ja7Bs-0002XC-FF@gemulon.postgresql.org>
Permalink:  ../E1ja7Bs-0002XC-FF@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ja7Bs-0002XC-FF@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: michael@paquier.xyz
  Subject: Re: pgsql: Make pg_stat_wal_receiver consistent with the WAL receiver's shm
  In-Reply-To: <E1ja7Bs-0002XC-FF@gemulon.postgresql.org>
  References: <E1ja7Bs-0002XC-FF@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