Re: [BUG] non archived WAL removed during production crash recovery - Mailing list pgsql-bugs

From Kyotaro Horiguchi
Subject Re: [BUG] non archived WAL removed during production crash recovery
Date
Msg-id 20200403.101417.2239113628048167718.horikyota.ntt@gmail.com
Whole thread Raw
In response to Re: [BUG] non archived WAL removed during production crash recovery  (Jehan-Guillaume de Rorthais <jgdr@dalibo.com>)
Responses Re: [BUG] non archived WAL removed during production crash recovery
List pgsql-bugs
At Thu, 2 Apr 2020 17:44:50 +0200, Jehan-Guillaume de Rorthais <jgdr@dalibo.com> wrote in
> On Thu, 2 Apr 2020 23:55:46 +0900
> Fujii Masao <masao.fujii@oss.nttdata.com> wrote:
>
> [...]
> > > Well, it seems to me that this is what you suggested few paragraph away:
> > >
> > >    «.ready files are removed when either archive_mode!=always in standby
> > > mode»
> >
> > Yes, so I'm fine with that as the first consensus because the behavior
> > is obviously better than the current one. *If* the case where no WAL files
> > should be removed is found, I'd just like to propose the additional patch.
>
> Do you mean to want to produce the next patch yourself?

No. Fujii-san is saying that he will address it, if the fix made in
this thread is found to be imperfect later.

He suspects that WAL files should be preserved at least in certain
cases even if the file persists forever, but the consensus here is to
remove files under certain conditions so as not to no WAL file
persists in pg_wal directory.

Feel free to propose the next version!

regards.

--
Kyotaro Horiguchi
NTT Open Source Software Center



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #16333: position() function not equivalent to strpos() function when comparing citext
Next
From: Artur Zakirov
Date:
Subject: Re: BUG #16337: Finnish Ispell dictionary cannot be created