Re: Archive directory - Mailing list pgsql-admin

From Paul Förster
Subject Re: Archive directory
Date
Msg-id 92588443-EB0E-412B-B768-301603D21CCA@gmail.com
Whole thread Raw
In response to Re: Archive directory  (Scott Ribe <scott_ribe@elevated-dev.com>)
Responses Re: Archive directory  (Scott Ribe <scott_ribe@elevated-dev.com>)
List pgsql-admin
Hi Scott,

> On 07. Dec, 2020, at 14:53, Scott Ribe <scott_ribe@elevated-dev.com> wrote:
>
> The point of the archive command is to copy to the replica. If you're archiving on master, then using some script to
copyto replica, then postgres has no way to know when it is safe to delete WAL files. 

in my understanding, this is only true if you don't use replication slots. If you use replication slots then the
primaryshould know when a WAL file is no longer needed and abandoned or ready to be recycled. 

Cheers,
Paul


pgsql-admin by date:

Previous
From: Yambu
Date:
Subject: Re: Archive directory
Next
From: MichaelDBA
Date:
Subject: Re: Archive directory