Re: BUG #17103: WAL segments are not removed after exceeding max_slot_wal_keep_size

From: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
To: alvherre(at)alvh(dot)no-ip(dot)org
Cc: tgl(at)sss(dot)pgh(dot)pa(dot)us, jeff(dot)janes(at)gmail(dot)com, mk(at)071(dot)ovh, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #17103: WAL segments are not removed after exceeding max_slot_wal_keep_size
Date: 2021-08-02 06:00:39
Message-ID: 20210802.150039.1897068533747177351.horikyota.ntt@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

At Thu, 29 Jul 2021 17:19:24 -0400, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> wrote in
> On 2021-Jul-29, Kyotaro Horiguchi wrote:
>
> > At Thu, 29 Jul 2021 16:20:38 +0900 (JST), Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com> wrote in
> > > So it seems to me we need to explicitly prevent unexpected checkpoints
> > > from happening maybe by enlarging max_wal_size temporily.
> >
> > I ended up with the attached. It causes a checkpoint reliably exactly
> > at the aimed timing without.
>
> Thanks for looking into it. The explanation makes sense, so I pushed
> your patch and also fixed one outdated comment I noticed while reading
> the related code. I hope this commit will solve the problem ... it is
> quite low probability, so we'll have to wait at least two weeks to make
> any conclusion.

Agreed. I hope this is the last failure..

Thanks.

--
Kyotaro Horiguchi
NTT Open Source Software Center

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Wojciech Strzalka 2021-08-02 07:05:19 psql doesn't show tables duplicated in multiple schemas
Previous Message David G. Johnston 2021-08-02 05:48:40 Re: Many queries stuck for waiting MultiXactOffsetControlLock on PostgreSQL 9.6.1 replica