pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael.paquier@gmail.com>
To: lovemewara1@gmail.com
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #14994: Email alert
Date: Sat, 30 Dec 2017 17:02:19 +0900
Message-ID: <20171230080219.GA5799@paquier.xyz> (raw)
In-Reply-To: <20171230071402.10236.83594@wrigleys.postgresql.org>
References: <20171230071402.10236.83594@wrigleys.postgresql.org>

On Sat, Dec 30, 2017 at 07:14:02AM +0000, PG Bug reporting form wrote:
> How to set auto Email alert after failure slave node in Streaming
> Replication  please suggest me.

This is usually the kind of job where a monitoring process running
checks periodically is fit for. You should do things on both the
primary, by for example looking at pg_stat_replication, and the standby
by looking at its status and how its WAL receiver goes, which is where
the new system view pg_stat_wal_receiver becomes handy.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (2+ messages)

Message-ID: <20171230080219.GA5799@paquier.xyz>
Permalink:  ../20171230080219.GA5799@paquier.xyz/
Also on:    postgresql.org/message-id/20171230080219.GA5799@paquier.xyz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: michael.paquier@gmail.com, lovemewara1@gmail.com
  Subject: Re: BUG #14994: Email alert
  In-Reply-To: <20171230080219.GA5799@paquier.xyz>
  References: <20171230071402.10236.83594@wrigleys.postgresql.org> <20171230080219.GA5799@paquier.xyz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox