Re: slave stops replica

From: Pepe TD Vo <pepevo(at)yahoo(dot)com>
To: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
Subject: Re: slave stops replica
Date: 2021-08-27 10:56:01
Message-ID: 1948635055.176990.1630061761986@mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Can we delete the old WALs?  May I know what  is the retention to perform tuning on the server like Oracle to keep only 7 days and why pg_archivecleanup doesn't work?
Bach-Nga

On Friday, August 27, 2021, 03:29:54 AM EDT, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> wrote:

On Thu, 2021-08-26 at 21:09 +0000, Pepe TD Vo wrote:
> I had master slave replica and yesterday the slave server's device was full on /var
> where the archive copy from master.  After trying to figure out why the
> pg_archivecleanup doesn't work, SA removed all wal files except the  current
>
> I tried to create a test table on master and didn't see it pick up from slave.
> I found out again /var is full. 

If you have deleted WAL that has no yet been applied to the standby, replication
is broken and you have to build the standby from scratch.

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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Magnus Hagander 2021-08-27 14:40:27 Re: Estimating HugePages Requirements?
Previous Message Nikhil Shetty 2021-08-27 09:12:14 PostGIS rpm dependencies