Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eVC6G-0002a8-Qv for pgsql-bugs@arkaria.postgresql.org; Sat, 30 Dec 2017 08:02:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eVC6F-0000BP-MP for pgsql-bugs@arkaria.postgresql.org; Sat, 30 Dec 2017 08:02:35 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eVC6F-0000BB-7O for pgsql-bugs@lists.postgresql.org; Sat, 30 Dec 2017 08:02:35 +0000 Received: from mail-pf0-x230.google.com ([2607:f8b0:400e:c00::230]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eVC68-0001Wr-CX for pgsql-bugs@postgresql.org; Sat, 30 Dec 2017 08:02:33 +0000 Received: by mail-pf0-x230.google.com with SMTP id m26so22892550pfj.11 for ; Sat, 30 Dec 2017 00:02:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=2BNcI8ijAUiMzjcF1pIr5TeHYrLqHBJafvik2hBdx6o=; b=YclYeM5cVRKq+X+zsJ7aVxn5jvxb/UtNNr5biIy1lTo3PWoNk6JtUgLJ3pUezw6MoP Qgw7J1ATqt8rYVFJ2x53pBG7NBRYtyQusydQBughQulrrPPI36lLBSry4Y04PtI0ZQNn 5J2889DxYM+fgF6cW2y8ZxxgaPiKPMLB+nPmhjYX/5EXhUB4P2YfAvsMEtAj1SyCExc5 x0W0QQJf/vKUbbFeTLlgl0pCrlhlxBEccfMrF9PhwpWS79+M/R27OKVpfwrjt1jBPZiL LZGMN0EXL2kSb3FWSvl0/si5EKZKRyiDxXQG/yAq4KxzrX0Yd1BXFZ+/iGEEJ/hD7V3o owCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=2BNcI8ijAUiMzjcF1pIr5TeHYrLqHBJafvik2hBdx6o=; b=okLkczSuDSadCypOrxnYCbGgR7tGLEeCKnDa8cRPUcSGdHqgpavOceLtOIx+R2vC5I kmNAfmmCAXuIP15PQlc8754cBuJBiaiUF6EyZY/MXFB6SAjYExMLnHl2nPFB+506edkF ZkKHL2xJIi25FRD+Fl/GfADC/0uN5xxuM8U1ZElm6bEbGztzh8A+rPwt7UNsW1hAkxfB 6AnDphCQu3p3M9AbkkEHdMK+xhi4NXfLx1awvvEuik1AyMlNjAayy7s2otsCjBUyONrv G23/ATA1ygPTbVYurNak2UDFcOmgi6hz45HnXV7sXIRPhP8eT8aRKY1tGsuU3wsUMcZU 5PRQ== X-Gm-Message-State: AKGB3mKQQ+5zUpRMaRVNr5+kSKf1z8iV0/n/F5wW+Qmmp87+/CkPqkwP 3iDZ0tXAtuqW24bnSaw5yxs= X-Google-Smtp-Source: ACJfBotYMJB3hmZAuOMkMcqh9EdEqS952FGUbx+2T5t1LU/H7kNcknqVNN5qqun+0pVl7q62368LrA== X-Received: by 10.99.45.4 with SMTP id t4mr32591905pgt.254.1514620946928; Sat, 30 Dec 2017 00:02:26 -0800 (PST) Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp. [61.215.137.162]) by smtp.gmail.com with ESMTPSA id k130sm79561531pfc.100.2017.12.30.00.02.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 30 Dec 2017 00:02:25 -0800 (PST) Date: Sat, 30 Dec 2017 17:02:19 +0900 From: Michael Paquier To: lovemewara1@gmail.com, pgsql-bugs@postgresql.org Subject: Re: BUG #14994: Email alert Message-ID: <20171230080219.GA5799@paquier.xyz> References: <20171230071402.10236.83594@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="8t9RHnE3ZwKMSgU+" Content-Disposition: inline In-Reply-To: <20171230071402.10236.83594@wrigleys.postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --8t9RHnE3ZwKMSgU+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlpHSAsACgkQnvQgOdby QH1ZkRAAjca0ZwfBxazJf9yLuP8jYs8ZQSHrEcArKwUBdokW5S1TM8jIpUWnJSN7 4JobtuvjqEl2wBcpvyAvKJvZfOWCeIeqMVt0zW11+wpcPI6AWnYxjmWg9Rxin3GP 2lLKIOPpIqmYNC1hDMIKxjvSoVFJ+vKzDFidCaieM7qslNVYI2yoryk0gVxiJ3YS gqtpv9IEr/Qp3NV/84pW3XMgXK8o9cAS+1LMhwas4YNOj14RwkrMpXu0/d3cVyL8 qi/Rc4Swecd0oFbXIwwfCcOxgtilLTNC159AieUj5n9zxcMAhB1EumQ9wkKHtR0I 3pLKENoeJhzTF6nUITO1YN76jDX5hws3uky10QuXaVE3X8uyjMEk3VqmM+J9chTZ paRKKVFN1dQL/oQvj7g4GMHRKQUXgnU+Raga3imqb8pBg6fAuHhLdpAXDUs8ivnY hlJ/bEhkU+B2ebZ7jDFekm8cG969d2CqEC3x9QYPMTtNFY8QcwC5y9Wpp9kDHRCn D9gDE/2IdAGLH5Pbo0GlUODtQSVynrXTZ/YycjodErzshyc1Rjk5WqRQQcAJ53Qj XSksRdbSfM7pGyaVmCHtZP+U59m4/DRryF7+JLdloF3DKXapHGC2rUgh0z7sbaBf u9bXwNOQ+5neT7rY0W2JeVXR9QTL809ar/rkr175p9l8YjWZXjc= =pu1H -----END PGP SIGNATURE----- --8t9RHnE3ZwKMSgU+--