pgsql: Make pg_stat_wal_receiver consistent with the WAL receiver's shm

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Make pg_stat_wal_receiver consistent with the WAL receiver's shm
Date: 2020-05-17 00:30:04
Message-ID: E1ja7Bs-0002XC-FF@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2020-05-17 01:00:35 pgsql: Mop-up for wait event naming issues.
Previous Message Tom Lane 2020-05-16 23:44:52 pgsql: Fix bugs in OpenSSL hook renaming.