]> granicus.if.org Git - postgresql/commit
Enhance pg_stat_wal_receiver view to display host and port of sender server.
authorFujii Masao <fujii@postgresql.org>
Fri, 30 Mar 2018 22:51:22 +0000 (07:51 +0900)
committerFujii Masao <fujii@postgresql.org>
Fri, 30 Mar 2018 22:51:22 +0000 (07:51 +0900)
commit9a895462d940c0694042059f90e5f63a0a517ded
tree8c6bdfb92cd8efa28acfecb4c186b145094a1838
parent11002f8afa551f4673aa6a7b62c1872c233e6052
Enhance pg_stat_wal_receiver view to display host and port of sender server.

Previously there was no way in the standby side to find out the host and port
of the sender server that the walreceiver was currently connected to when
multiple hosts and ports were specified in primary_conninfo. For that purpose,
this patch adds sender_host and sender_port columns into pg_stat_wal_receiver
view. They report the host and port that the active replication connection
currently uses.

Bump catalog version.

Author: Haribabu Kommi
Reviewed-by: Michael Paquier and me
Discussion: https://postgr.es/m/CAJrrPGcV_aq8=cdqkFhVDJKEnDQ70yRTTdY9RODzMnXNrCz2Ow@mail.gmail.com
doc/src/sgml/monitoring.sgml
src/backend/catalog/system_views.sql
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
src/backend/replication/walreceiver.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/replication/walreceiver.h
src/test/regress/expected/rules.out