• Alvaro Herrera's avatar
    pgstat: add WAL receiver status view & SRF · b1a9bad9
    Alvaro Herrera authored
    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
    b1a9bad9
walreceiver.h 5.21 KB