Re: Archive directory

From: Ian Lawrence Barwick <barwick(at)gmail(dot)com>
To: Yambu <hyambu(at)gmail(dot)com>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Archive directory
Date: 2020-12-07 13:38:09
Message-ID: CAB8KJ=gLEma2G3yGy6dO1PRtG1-nrRzTFcg8g17a8bPLXs5ODw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

2020年12月7日(月) 22:23 Yambu <hyambu(at)gmail(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Yambu 2020-12-07 13:47:26 Re: Archive directory
Previous Message Yambu 2020-12-07 13:23:33 Archive directory