report whether PostgreSQL node is master or standby


bgw_replstatus is a tiny PostgreSQL background worker to cheaply report the replication status of a node. It's intended to be polled by a load balancer such as haproxy.

When installed, a background worker will be started that listens on a TCP port. A connection to this port will get a TCP response back saying either MASTER or STANDBY depending on the current state of the node.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install postgresql-15-bgw-replstatus