mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
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
This commit is contained in:
@ -2031,6 +2031,25 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
|
||||
<entry><type>text</type></entry>
|
||||
<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>
|
||||
|
Reference in New Issue
Block a user