pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrus <kobruleht2@hot.ee>
To: Michael Paquier <michael@paquier.xyz>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: How to prevent master server crash if hot standby stops
Date: Mon, 6 Apr 2020 11:59:05 +0300
Message-ID: <66DF84156F9442448FF8E8CF575FFE54@dell2> (raw)
In-Reply-To: <20200406082841.GB523433@paquier.xyz>
References: <5E2C91B46CEF42078CC7BEE1EDC10F0E@dell2>
	<20200406082841.GB523433@paquier.xyz>

Hi!

Thank you.

>When you use replication slots, it is very important to put in place a
>monitoring solution to check if too much WAL is retained, and note
>that there is nothing able to do that natively in core Postgres.
>There are however multiple ways to solve this problem, like a
>background worker (for the slot monitoring as well as optionally
>killing and/or dropping), a simple cron job or even check_postgres.

Where to find some sample how to implement this ?

I read from docs that slot cannot dropped if it is in use.
How to stop replication in this case.

Andrus.





view thread (10+ messages)  latest in thread

Message-ID: <66DF84156F9442448FF8E8CF575FFE54@dell2>
Permalink:  ../66DF84156F9442448FF8E8CF575FFE54@dell2/
Also on:    postgresql.org/message-id/66DF84156F9442448FF8E8CF575FFE54@dell2

 · 

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-general@postgresql.org
  Cc: kobruleht2@hot.ee, michael@paquier.xyz
  Subject: Re: How to prevent master server crash if hot standby stops
  In-Reply-To: <66DF84156F9442448FF8E8CF575FFE54@dell2>
  References: <5E2C91B46CEF42078CC7BEE1EDC10F0E@dell2> <20200406082841.GB523433@paquier.xyz> <66DF84156F9442448FF8E8CF575FFE54@dell2>

* 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