Re: Old WAL files under pg_xlog not getting delete

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Old WAL files under pg_xlog not getting delete
Date: 2019-01-30 23:37:25
Message-ID: aea0796a-9b55-aa75-4ad3-5377fc03e240@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmail(dot)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.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Alvaro Herrera 2019-01-31 00:00:15 Re: Old WAL files under pg_xlog not getting delete
Previous Message David G. Johnston 2019-01-30 23:10:13 Re: Old WAL files under pg_xlog not getting delete