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 1jM0Nh-0008Kt-6z for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Apr 2020 02:23:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jM0Ng-0005Td-0Y for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Apr 2020 02:23:56 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jM0Nf-0005TW-QV for pgsql-bugs@lists.postgresql.org; Wed, 08 Apr 2020 02:23:55 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jM0Nd-0002GR-Gh for pgsql-bugs@lists.postgresql.org; Wed, 08 Apr 2020 02:23:54 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 36B053E8; Tue, 7 Apr 2020 22:23:52 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 07 Apr 2020 22:23:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=+y0SrMDCqY/7XaeBW5HPR7a0xSf 3cOMFCjg9/ExL/Fw=; b=Zde6x6pr8jjwftTLzndtRIKBsWYKoZlNHfKeaZipBBw gGNPXYcIxCBa0vYyaEAs/7KHK/kXk8/JGJyejeSXp8nhdsJg3uC6SDutwKt1HSee L8GW+QOFau4s2DtYCw6BpG7sf86J1NEZikXSFIXBckV5uCLcMBV+m9W7ygBZ25Jw KggHj2OzGp5PUDu2jUpT/oxLoFiXuc4LCDT3QqgV6s80oVSA8r0WqDT8VE1OeSIR gP9qh250aMr6sI9NcUpm9XfhpLKogywgn7zZce8edaS7MUbDFT+WJPN5lPQr9BK2 A1y6MGv7uXmGAjQ7GOTD161wcry+EHZallGVGRhY3lw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=+y0SrM DCqY/7XaeBW5HPR7a0xSf3cOMFCjg9/ExL/Fw=; b=tYjn2A4TkrRMBbxwljih6v nffy9ljyVMvGZxzfzIa7JrO7UO2oCzYWPd83Q/BzQ8L2MGY8DaBIBG5bVhFwzOAQ TsnH3MVsFIxEZ3oj+DyMxV2lWf1ruBpY779AtEcQ6sWsQGB6PO+AlSwI1B88s1VL YtlNG1uhN31fQAXHUTLGezhKHCSPZd7hcLGJd4BKHt5Tj2ZOSC/d3O2H0vNZO992 7NEqPh1goPfTku8KnJbxrMY0lUUAi1RvYpA6BeHEB38wOF8RZBCjpsMc6K0sEGjo Y9UGQ9VrNbm4b1xfPawE1mLPEqIfxFtu7GtQKfFpbugeJg+ChEGnD8kKppGLDRxw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeigdehkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduuddurddutddvrddukedtrddukeehnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesph grqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 85D9F3280060; Tue, 7 Apr 2020 22:23:49 -0400 (EDT) Date: Wed, 8 Apr 2020 11:23:45 +0900 From: Michael Paquier To: Jehan-Guillaume de Rorthais Cc: Fujii Masao , Kyotaro Horiguchi , pgsql-bugs@lists.postgresql.org Subject: Re: [BUG] non archived WAL removed during production crash recovery Message-ID: <20200408022345.GC1606@paquier.xyz> 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> <20200403182625.0fccc6fd@firost> <4d48dbdb-e1db-a2d6-2fb2-c2a66efa7818@oss.nttdata.com> <20200407171736.61906608@firost> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Md/poaVZ8hnGTzuv" Content-Disposition: inline In-Reply-To: <20200407171736.61906608@firost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Md/poaVZ8hnGTzuv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 07, 2020 at 05:17:36PM +0200, Jehan-Guillaume de Rorthais wrote: > I'm not sure who would need this information before the WAL machinery is = up, > but is it safe enough in your opinion for futur usage of GetRecoveryState= ()? Do > you think this information might be useful before the WAL machinery is se= t? > Current "user" (eg. restoreTwoPhaseData()) only need to know if we are in > recovery, whatever the reason. (I had this thread marked as something to look at, but could not. Sorry for the delay). > src/test/recovery/t/011_crash_recovery.pl | 16 ++++++++++++++-- > 1 file changed, 14 insertions(+), 2 deletions(-) >=20 > diff --git a/src/test/recovery/t/011_crash_recovery.pl b/src/test/recover= y/t/011_crash_recovery.pl > index ca6e92b50d..ce2e899891 100644 > --- a/src/test/recovery/t/011_crash_recovery.pl > +++ b/src/test/recovery/t/011_crash_recovery.pl > @@ -15,11 +15,17 @@ if ($Config{osname} eq 'MSWin32') May I ask why this new test is added to 011_crash_recovery.pl which is aimed at testing crash and redo, while we have 002_archiving.pl that is dedicated to archiving in a more general manner? -- Michael --Md/poaVZ8hnGTzuv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl6NNbEACgkQnvQgOdby QH1dEBAAmnEYqCJ1rOYXukpfdw+aKAysVkpPvi8KOK07QFg2tSttgrvYgMB13HZE xSZT8G8ArbS7DcWd6wNpETOg08HTPcz73j3nB56G+KhNNeSUsIFLClTH94Dh6PxW cRsaEF9Q362oSFgOAJKUQ/wHhnRyEI6+H1fg5JV51wj+Q3yt0vFLWaiZJ/P7IiGV XIAGbiIRopsuTAwqsVjb7nRG3LcL8I+pQ6Iw+ARnd/AqTHpXvIZ0UTZ/uzxxwEfo OzX4+UrRYbr/x55X7kheaCgzgDHMTcxKWYoQv/hzb5sqoqv8XtWL9NE7DALWN26P L9OErOYZEBDcSqTKW3qVz2tkd7jiAVUTMI7lpNF5UJaaEHFmEXx8Ex7UsyTND66K N8USG33sHNHudMRORRqMSwO5sZnmwYvAv5lgjm8Qm4eJND7Ps22CTC1GjqSxeejP NlxlAFtEHPfsBkOvy6LGH343e9Upbto9mF6ADfAkeGznXvUE/tIR93ANSSCPWG8i ak5WSWvTd6tRh/xMW0wKsHClwic/QYWd2l8RdWjLVW4BenWGMRMhg33BaRlFzDlR BMYoO1tbv7O4L2NchYO2gvEQAh7cqQb143hyCaWu1z75pU3uoHAODFBVc3vUhMG2 bcuM0/4Ct/XcHFWUb9a3m9PWP6sVeuhzSlb1T9nqcUPRz5Sv0Aw= =T7IS -----END PGP SIGNATURE----- --Md/poaVZ8hnGTzuv--