Re: pg_archivecleanup - Increase time files are deleted

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Melvin Davidson <melvin6925(at)gmail(dot)com>
Cc: Patrick B <patrickbakerbr(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg_archivecleanup - Increase time files are deleted
Date: 2016-06-27 00:50:49
Message-ID: CAB7nPqR-XvyPDFwCV1bCm+J0_-cvmCsgkQS4uYPEymfEim_5kA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Jun 27, 2016 at 6:42 AM, Melvin Davidson <melvin6925(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Paquier 2016-06-27 00:52:13 Re: reject
Previous Message 유성열 2016-06-27 00:21:55 reject