Re: Enhance pg_stat_wal_receiver view to display connected host
Haribabu Kommi <kommi.haribabu@gmail.com>
From: Haribabu Kommi <kommi.haribabu@gmail.com>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2017-12-22T04:11:07Z
Lists: pgsql-hackers
Attachments
- pg_stat_wal_receiver-to-display-connected-host_v1.patch (application/octet-stream) patch v1
On Thu, Dec 21, 2017 at 11:12 PM, Michael Paquier <michael.paquier@gmail.com > wrote: > On Thu, Dec 21, 2017 at 8:16 PM, Haribabu Kommi > <kommi.haribabu@gmail.com> wrote: > > The current connected host details are already available in the PGconn > > structure, > > Exposing those details in the view will suffice this requirement. > Currently > > these > > members are characters pointers, I used them as it is and displayed them > in > > the > > view as character arrays except the port number. > > > > Attached the draft patch. Any comments? > > I agree that it would be nice to have an equivalent to > pg_stat_replication's client_addr, client_hostname, client_port on the > receiver side, particularly because it is possible to list multiple > hosts and ports. Could you add that to the next commit fest? > Added. > Please note that you need to update rules.out and the documentation > because of the new fields. > Updated patch attached with tests and doc changes. Regards, Hari Babu Fujitsu Australia
Commits
-
Enhance pg_stat_wal_receiver view to display host and port of sender server.
- 9a895462d940 11.0 landed
-
Allow multiple hostaddrs to go with multiple hostnames.
- 7b02ba62e9ff 10.0 cited
-
libpq: Fix inadvertent change in PQhost() behavior.
- 11003eb55658 10.0 cited
-
libpq: Allow connection strings and URIs to specify multiple hosts.
- 274bb2b3857c 10.0 cited