Re: Archive directory - Mailing list pgsql-admin

From Yambu
Subject Re: Archive directory
Date
Msg-id CALhHtcC-6+kKZZcqMNkMkNv6A9Fof9jiJXnF2jjhtZXnN_yKCg@mail.gmail.com
Whole thread Raw
In response to Re: Archive directory  (Scott Ribe <scott_ribe@elevated-dev.com>)
Responses Re: Archive directory  (Jeff Janes <jeff.janes@gmail.com>)
List pgsql-admin
Ok, whats happens in the case when you have 2 slave servers?

On Mon, Dec 7, 2020 at 3:53 PM Scott Ribe <scott_ribe@elevated-dev.com> wrote:
> On Dec 7, 2020, at 6:47 AM, Yambu <hyambu@gmail.com> wrote:
>
> Does the command ,archive_cleanup_command, delete the files from the master server? i understand this config is done on the slave server

The point of the archive command is to copy to the replica. If you're archiving on master, then using some script to copy to replica, then postgres has no way to know when it is safe to delete WAL files.

pgsql-admin by date:

Previous
From: Scott Ribe
Date:
Subject: Re: Archive directory
Next
From: Paul Förster
Date:
Subject: Re: Archive directory