Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jK21Y-0006Lg-0z for pgsql-bugs@arkaria.postgresql.org; Thu, 02 Apr 2020 15:44:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jK21W-0005X2-U3 for pgsql-bugs@arkaria.postgresql.org; Thu, 02 Apr 2020 15:44:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jK21W-0005Wv-KQ for pgsql-bugs@lists.postgresql.org; Thu, 02 Apr 2020 15:44:54 +0000 Received: from mail.dalibo.com ([212.85.157.172]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jK21U-0004D5-LP for pgsql-bugs@lists.postgresql.org; Thu, 02 Apr 2020 15:44:54 +0000 Received: from firost (larco.ioguix.net [82.66.0.6]) by mail.dalibo.com (Postfix) with ESMTPSA id 232371FB6B; Thu, 2 Apr 2020 17:44:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dalibo.com; s=a; t=1585842291; bh=fd0q+CrypHS1mfaVqI+AFYrImwg+KPVjQHF08KNE1sk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=TCZKbbvqTEYrA7Hb9wEOXXtYFpSwSkauryDlyHzOOGT5v0nm09KQ8HwqJ775s2fig maahJukgOkUWI/tcPB6g3GysRauGmqDO9dLArhc8+PkjMq02Q7gEaZfv1X+PxhLBBg 72BBOKA+qiCdY6hseSAGB1kZeKx7w8yPcCRBhVZs= Date: Thu, 2 Apr 2020 17:44:50 +0200 From: Jehan-Guillaume de Rorthais To: Fujii Masao Cc: Kyotaro Horiguchi , pgsql-bugs@lists.postgresql.org, michael@paquier.xyz Subject: Re: [BUG] non archived WAL removed during production crash recovery Message-ID: <20200402174450.70de9ab5@firost> In-Reply-To: <3d543ef2-ae02-5e59-3bfe-b79d00dab360@oss.nttdata.com> References: <20200402.130443.1791362864704140391.horikyota.ntt@gmail.com> <20200402.130734.613319908534820379.horikyota.ntt@gmail.com> <03900fc5-fff4-109a-fe69-83de2c167929@oss.nttdata.com> <20200402.162323.770257425358491539.horikyota.ntt@gmail.com> <20200402154915.4984cff2@firost> <3d543ef2-ae02-5e59-3bfe-b79d00dab360@oss.nttdata.com> Organization: Dalibo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, 2 Apr 2020 23:55:46 +0900 Fujii Masao wrote: [...] > > Well, it seems to me that this is what you suggested few paragraph away: > >=20 > > =C2=AB.ready files are removed when either archive_mode!=3Dalways in= standby > > mode=C2=BB =20 >=20 > 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?