Make pg_stat_wal_receiver consistent with the WAL receiver's shmem info
authorMichael Paquier <michael@paquier.xyz>
Sun, 17 May 2020 00:22:07 +0000 (09:22 +0900)
committerMichael Paquier <michael@paquier.xyz>
Sun, 17 May 2020 00:22:07 +0000 (09:22 +0900)
commit2c8dd05d6cbc86b7ad21cfd7010e041bb4c3950b
tree92b1fc5c0f21a0c7ab7f811813367c1aa4a4c2c8
parente78b93094518b1e262cba8115470f252dde6f446
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
doc/src/sgml/monitoring.sgml
src/backend/catalog/system_views.sql
src/backend/replication/walreceiver.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.dat
src/test/regress/expected/rules.out