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

2021-06-16 Thread Peter J. Holzer
On 2021-06-14 08:10:58 -0400, Dave Cramer wrote: > On Sun, 13 Jun 2021 at 19:32, 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? > > On the surface this seem

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

2021-06-14 Thread Dave Cramer
On Sun, 13 Jun 2021 at 19:32, 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 ma

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