Re: Deleting unwanted wal files

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: krish050591 <krish050591(at)gmail(dot)com>
Cc: PostgreSQL mailing lists <pgsql-general(at)postgresql(dot)org>
Subject: Re: Deleting unwanted wal files
Date: 2017-08-17 14:31:08
Message-ID: CAB7nPqTjn2ct2=rEV58Tyas6LAJ=u6UGUp0PLyT3vSgGB6NkdQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Aug 17, 2017 at 8:06 PM, krish050591 <krish050591(at)gmail(dot)com> 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message krishna chaitanya 2017-08-17 15:43:03 Re: Deleting unwanted wal files
Previous Message Fabiana Zioti 2017-08-17 13:53:46 Re: Development of an extension for PostgreSQL and PostGIS