From: hubert depesz lubaczewski <depesz@depesz.com>
To: Atul Kumar <akumar14871@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: number of wal file is not reduced.
Date: Mon, 5 Jul 2021 12:51:26 +0200
Message-ID: <20210705105126.GA18337@depesz.com> (raw)
In-Reply-To: <CA+ONtZ6nyNvtiR2mQv12SD9X-yn9a-=etBK29HfE2xyDT61Eag@mail.gmail.com>
References: <CA+ONtZ6nyNvtiR2mQv12SD9X-yn9a-=etBK29HfE2xyDT61Eag@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: depesz@depesz.com, akumar14871@gmail.com
Subject: Re: number of wal file is not reduced.
In-Reply-To: <20210705105126.GA18337@depesz.com>
References: <CA+ONtZ6nyNvtiR2mQv12SD9X-yn9a-=etBK29HfE2xyDT61Eag@mail.gmail.com> <20210705105126.GA18337@depesz.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox