Re: Old WAL files under pg_xlog not getting delete - Mailing list pgsql-admin

From Ron
Subject Re: Old WAL files under pg_xlog not getting delete
Date
Msg-id aea0796a-9b55-aa75-4ad3-5377fc03e240@gmail.com
Whole thread Raw
In response to Re: Old WAL files under pg_xlog not getting delete  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: Old WAL files under pg_xlog not getting delete  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-admin

On 1/30/19 5:10 PM, David G. Johnston wrote:
> On Wed, Jan 30, 2019 at 3:58 PM rammohan ganapavarapu
> <rammohanganap@gmail.com> wrote:
>> I am trying to understand why postgresql not removing WAL logs under pg_xlog in 9.6, below are my settings
>>
>> wal_keep_segments=500
>>
>> pg_xlog/|wc -l
>> 506
> You told PostgreSQL to keep 500 files and it has (the number kept
> apparently fluctuates a little bit).
>
> https://www.postgresql.org/docs/11/wal-configuration.html

Plus the ".", ".." and archive_status directories, and lost+found if pg_xlog 
is it's own partition.  That's four of the unknown six.  Add a .backup file 
or two and all 506 files are accounted for.

-- 
Angular momentum makes the world go 'round.


pgsql-admin by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Old WAL files under pg_xlog not getting delete
Next
From: Alvaro Herrera
Date:
Subject: Re: Old WAL files under pg_xlog not getting delete