Re: number of wal file is not reduced.

From: Atul Kumar <akumar14871(at)gmail(dot)com>
To: depesz(at)depesz(dot)com
Cc: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: number of wal file is not reduced.
Date: 2021-07-05 11:18:04
Message-ID: CA+ONtZ4eoZuvN2PBm_BhNE88fJtt0sQTpXb4U9Jiq_TiQcPhLg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi ,

As I mentioned in my mail that there is no replication configured and
no archival is lagging.

my query is simple.

How to to reduce the number of wal file from 4000 to 100 in an
independent server ?

Regards.

On 7/5/21, hubert depesz lubaczewski <depesz(at)depesz(dot)com> wrote:
> On Mon, Jul 05, 2021 at 03:18:14PM +0530, Atul Kumar wrote:
>> I have postgres 9.6 running server on centos 7, the number of wal file
>> in pg_xlog directory is above 4000 so to save some disk space, I
>> thought of reducing to 100.
> ...
>> Please suggest when the number of wal files will be reduced to approx
>> 100.
>
> It's hard to say for sure. There are potential issues that might cause
> pg to keep more wal files than configured.
>
> Generally these kinds of things are easier solved in more interactive
> medium - like IRC, or Slack.
>
> But, to give you some start, check if:
> 1. archiving doesn't fail
> 2. archiving doesn't lag
> 3. there are no prepared transactions
> 4. there are no lagging replication slots
>
> Best regards,
>
> depesz
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vijaykumar Jain 2021-07-05 12:02:19 Re: Logical Replication - Single Destination Table With Multiple Source Tables - How to Handle Structure Changes
Previous Message Atul Kumar 2021-07-05 11:15:09 wal_keep_segments and max_wal_size