Re: pg_archivecleanup - Increase time files are deleted - Mailing list pgsql-general

From Michael Paquier
Subject Re: pg_archivecleanup - Increase time files are deleted
Date
Msg-id CAB7nPqR-XvyPDFwCV1bCm+J0_-cvmCsgkQS4uYPEymfEim_5kA@mail.gmail.com
Whole thread Raw
In response to Re: pg_archivecleanup - Increase time files are deleted  (Melvin Davidson <melvin6925@gmail.com>)
List pgsql-general
On Mon, Jun 27, 2016 at 6:42 AM, Melvin Davidson <melvin6925@gmail.com> wrote:
> >That means there will be at least 256 files before postgres delete them?
>
> Yes!

Not exactly. To be more precise, for an instance generating WAL, the
decision regarding the number of WAL segments to remove or recycled is
done at the creation of a checkpoint, for a standby that's when a
restart point is created. See where KeepLogSeg() in xlog.c.
--
Michael


pgsql-general by date:

Previous
From: 유성열
Date:
Subject: reject
Next
From: Michael Paquier
Date:
Subject: Re: reject