Notify When Streaming Replication Failover Occurred (slave promoted to master).

2021-06-13 Thread Avi Weinberg
I need to take actions when Postgres streaming replication failover occurred. Is there a way to be notified when Postgres slave becomes master? If no such notification possible, what is the best way to actively monitor which server is master. My Postgres is running inside Kubernetes and the HA i

Re: Notify When Streaming Replication Failover Occurred (slave promoted to master).

2021-06-13 Thread Peter J. Holzer
On 2021-06-13 08:00:24 +, Avi Weinberg wrote: > I need to take actions when Postgres streaming replication failover occurred. > Is there a way to be notified when Postgres slave becomes master? If no such > notification possible, what is the best way to actively monitor which server > is > m

Notify When Streaming Replication Failover Occurred (slave promoted to master).

2021-06-13 Thread Avi Weinberg
I need to take actions when Postgres streaming replication failover occurred. Is there a way to be notified when Postgres slave becomes master? If no such notification possible, what is the best way to actively monitor which server is master. My Postgres is running inside Kubernetes and the