Make pg_stat_wal_receiver consistent with the WAL receiver's shmem info
Michael Paquier <michael@paquier.xyz>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/monitoring.sgml | modified | +11 −1 |
| src/backend/catalog/system_views.sql | modified | +2 −1 |
| src/backend/replication/walreceiver.c | modified | +27 −21 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_proc.dat | modified | +3 −3 |
| src/test/regress/expected/rules.out | modified | +3 −2 |
Documentation touched
Discussion
- pg_stat_wal_receiver and flushedUpto/writtenUpto 9 messages · 2020-05-15 → 2020-05-20