pgstat: add WAL receiver status view & SRF

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: b1a9bad9e744857291c7d5516080527da8219854
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2016-01-07T19:21:19Z
Releases: 9.6.0
pgstat: add WAL receiver status view & SRF

This new view provides insight into the state of a running WAL receiver
in a HOT standby node.
The information returned includes the PID of the WAL receiver process,
its status (stopped, starting, streaming, etc), start LSN and TLI, last
received LSN and TLI, timestamp of last message send and receipt, latest
end-of-WAL LSN and time, and the name of the slot (if any).

Access to the detailed data is only granted to superusers; others only
get the PID.

Author: Michael Paquier
Reviewer: Haribabu Kommi

Files

Documentation touched