From: Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
To: Ninad Shah <nshah.postgres@gmail.com>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: basti <mailinglist@unix-solution.de>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: prevent WAL replication to fill filesystem
Date: Wed, 08 Sep 2021 08:39:03 +0200
Message-ID: <80F8268C-59FD-4C83-8DFD-36281AD912B6@dalibo.com> (raw)
In-Reply-To: <CAOFEiBdsFRoSuJs+A3cJ3EFFV4QLLJEHcr_w8GSrC2h8Sxo4Zw@mail.gmail.com>
References: <b29ef63e-9265-e4b1-afaf-453f3c254a6f@unix-solution.de>
<7dddc78919c491aa1b6f1e369ed8024ccba9f1be.camel@cybertec.at>
<20210831113752.2be1ed44@firost>
<CAOFEiBdsFRoSuJs+A3cJ3EFFV4QLLJEHcr_w8GSrC2h8Sxo4Zw@mail.gmail.com>
Le 8 septembre 2021 06:07:15 GMT+02:00, Ninad Shah <nshah.postgres@gmail.com> a écrit :
>These suggestions are appropriate. However, if you are ready to lose your
>replica to keep production running, there are a couple of methods.
>
>1) Set archive_command to "/bin/true"
>2) rename .ready files in archive_status to .done.
You do not need to rename files in archive_status, especially after setting /bin/true. The normal production, if running, will soon enough clean everything, quickly.
A good advice is to never do writes in pg_wal yoursef (mv, rm, edit, etc).
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: jgdr@dalibo.com, nshah.postgres@gmail.com, laurenz.albe@cybertec.at, mailinglist@unix-solution.de
Subject: Re: prevent WAL replication to fill filesystem
In-Reply-To: <80F8268C-59FD-4C83-8DFD-36281AD912B6@dalibo.com>
References: <b29ef63e-9265-e4b1-afaf-453f3c254a6f@unix-solution.de> <7dddc78919c491aa1b6f1e369ed8024ccba9f1be.camel@cybertec.at> <20210831113752.2be1ed44@firost> <CAOFEiBdsFRoSuJs+A3cJ3EFFV4QLLJEHcr_w8GSrC2h8Sxo4Zw@mail.gmail.com> <80F8268C-59FD-4C83-8DFD-36281AD912B6@dalibo.com>
* 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