Re: How to prevent master server crash if hot standby stops - Mailing list pgsql-general

From Laurenz Albe
Subject Re: How to prevent master server crash if hot standby stops
Date
Msg-id b12b2e2f498dba4209ba022488e3caf8342d39e6.camel@cybertec.at
Whole thread Raw
In response to Re: How to prevent master server crash if hot standby stops  ("Andrus" <kobruleht2@hot.ee>)
List pgsql-general
On Tue, 2020-04-07 at 12:05 +0300, Andrus wrote:
> > About your third question, you *never* manually mess with the files in pg_wal.
> > The server does that.
> 
> Is it OK  to stop server, delete all files in pg_wal directory and re-start server ?

No.

> Or should default value put back and wait until server frees 1 GB disk space ?

You'd have to set "wal_keep_segments" and "max_wal_size" lower, then have
normal database activity and wait until a couple of checkpoints have passed.

But frankly, 1 GB is ridiculously little.  If you have to worry about that
much disk space, you're must be running PostgreSQL on a toaster.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




pgsql-general by date:

Previous
From: "Andrus"
Date:
Subject: Re: How to prevent master server crash if hot standby stops
Next
From: Vano Beridze
Date:
Subject: PostgreSQL native multi-master