|From:||Peter Eisentraut <peter_e(at)gmx(dot)net>|
|Views:||Raw Message | Whole Thread | Download mbox | Resend email|
There are functions pg_stat_get_backend_client_addr and
pg_stat_get_backend_client_port, which are exposed through the
pg_stat_activity view, but there is no straightforward way to get the
server-side address and port of a connection. This is obviously much
less commonly needed than the client information, but it's still
sometimes useful on hosts with many IP addresses.
I suggest that we add the functions pg_stat_get_backend_server_addr and
pg_stat_get_backend_server_port, but don't expose them in
pg_stat_activity. (_server_port is really mostly for symmetry, because
you can't currently bind to multiple ports.)
Patch attached. Comments?
|Next Message||Tom Lane||2010-05-27 19:35:07||Re: JSON manipulation functions|
|Previous Message||David Fetter||2010-05-27 19:30:10||Re: Specification for Trusted PLs?|