Search Postgresql Archives

Re: Deleting unwanted wal files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for your reply, but will pg_basebackup generate a .backup file when scheduled in cron job so that i can give that as input to pg_archivecleanup. Also if i give archive_cleanup_command in recovery.conf will it check the presence of recovery.conf file automatically and execute the command from that file ? 

On 17 Aug 2017 8:01 p.m., "Michael Paquier" <michael.paquier@xxxxxxxxx> wrote:
On Thu, Aug 17, 2017 at 8:06 PM, krish050591 <krish050591@xxxxxxxxx> wrote:
> Hi, if i'm using pg_basebackup utility for taking my database backup and also
> enabled wal level archiving, how will i detect the unwanted wal files and
> how will it delete them ?

Have you heard of pg_archivecleanup? Documentation is here:
https://www.postgresql.org/docs/devel/static/pgarchivecleanup.html
If a single archive is not cross-used among multiple standbys, you
could use it with archive_cleanup_command is recovery.conf to remove
unneeded WAL segments.
--
Michael

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux