diff options
author | Fujii Masao <fujii@postgresql.org> | 2018-03-31 07:51:22 +0900 |
---|---|---|
committer | Fujii Masao <fujii@postgresql.org> | 2018-03-31 07:51:22 +0900 |
commit | 9a895462d940c0694042059f90e5f63a0a517ded (patch) | |
tree | 8c6bdfb92cd8efa28acfecb4c186b145094a1838 /doc/src | |
parent | 11002f8afa551f4673aa6a7b62c1872c233e6052 (diff) |
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
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/monitoring.sgml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml index 3bc4de57d5a..c278076e68d 100644 --- a/doc/src/sgml/monitoring.sgml +++ b/doc/src/sgml/monitoring.sgml @@ -2032,6 +2032,25 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i <entry>Replication slot name used by this WAL receiver</entry> </row> <row> + <entry><structfield>sender_host</structfield></entry> + <entry><type>text</type></entry> + <entry> + Host of the <productname>PostgreSQL</productname> instance + this WAL receiver is connected to. This can be a host name, + an IP address, or a directory path if the connection is via + Unix socket. (The path case can be distinguished because it + will always be an absolute path, beginning with <literal>/</literal>.) + </entry> + </row> + <row> + <entry><structfield>sender_port</structfield></entry> + <entry><type>integer</type></entry> + <entry> + Port number of the <productname>PostgreSQL</productname> instance + this WAL receiver is connected to. + </entry> + </row> + <row> <entry><structfield>conninfo</structfield></entry> <entry><type>text</type></entry> <entry> |