pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrus <kobruleht2@hot.ee>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: How to prevent master server crash if hot standby stops
Date: Mon, 6 Apr 2020 11:03:20 +0300
Message-ID: <5E2C91B46CEF42078CC7BEE1EDC10F0E@dell2> (raw)

Hi!

Streaming asynchronous binary replication is used with hot standby slave.

If slave stops responing, master server will create files in pg_wal directory.
If disk becomes full, master server crashes also.

How to avoid this ?

If disk is nearly full, master should stop additional files creation (and maybe stop or disable replication slot).
Postgres 12 in Debian 10 is used.

Andrus.





view thread (10+ messages)  latest in thread

Message-ID: <5E2C91B46CEF42078CC7BEE1EDC10F0E@dell2>
Permalink:  ../5E2C91B46CEF42078CC7BEE1EDC10F0E@dell2/
Also on:    postgresql.org/message-id/5E2C91B46CEF42078CC7BEE1EDC10F0E@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
  Subject: Re: How to prevent master server crash if hot standby stops
  In-Reply-To: <5E2C91B46CEF42078CC7BEE1EDC10F0E@dell2>
  References: <5E2C91B46CEF42078CC7BEE1EDC10F0E@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