On Mon, Jun 27, 2016 at 6:42 AM, Melvin Davidson <melvin6925@xxxxxxxxx> 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 -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general