Re: Archive directory - Mailing list pgsql-admin

From Yambu
Subject Re: Archive directory
Date
Msg-id CALhHtcBRydsziEtQV+7rj81rHhL4N4jwTqGbBWDnLRMnB0tLBw@mail.gmail.com
Whole thread Raw
In response to Re: Archive directory  (Ian Lawrence Barwick <barwick@gmail.com>)
Responses Re: Archive directory  (Scott Ribe <scott_ribe@elevated-dev.com>)
List pgsql-admin
Does the command ,archive_cleanup_command, delete the files from the master server? i understand this config is done on the slave server

On Mon, Dec 7, 2020 at 3:38 PM Ian Lawrence Barwick <barwick@gmail.com> wrote:
2020年12月7日(月) 22:23 Yambu <hyambu@gmail.com>:
>
> Hello
>
> Does postgres have a way of removing wal files stored in archive directory?
> Or do I have to manually clean up this directory?
>
> The directory im talking about is the one on master server configured as
>
> archive_command= cp %p /replication/archive/%f

Is "archive_cleanup_command" what you're looking for?

  https://www.postgresql.org/docs/current/runtime-config-wal.html#GUC-ARCHIVE-CLEANUP-COMMAND

Regards

Ian Barwick


--
EnterpriseDB: https://www.enterprisedb.com

pgsql-admin by date:

Previous
From: Ian Lawrence Barwick
Date:
Subject: Re: Archive directory
Next
From: Scott Ribe
Date:
Subject: Re: Archive directory