Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qUcNB-00DX9r-9v for pgsql-bugs@arkaria.postgresql.org; Sat, 12 Aug 2023 00:20:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qUcN9-00CqcJ-L0 for pgsql-bugs@arkaria.postgresql.org; Sat, 12 Aug 2023 00:20:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qUcN8-00CqcA-AJ for pgsql-bugs@lists.postgresql.org; Sat, 12 Aug 2023 00:20:51 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qUcN2-001yGp-QC for pgsql-bugs@lists.postgresql.org; Sat, 12 Aug 2023 00:20:50 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 791BB32001AB; Fri, 11 Aug 2023 20:20:40 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 11 Aug 2023 20:20:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1691799639; x=1691886039; bh=fW Ocn0nNZIA9lXDMn/gOE15yHL22JMDzmHXN3J9S/p4=; b=qLqgNpoof50YLPPp0V hlht4HqHVfPa1iPMI545fQtl1u4TngctT5KiieXMP+bsVSzKnO2HQVfWl5ksYkJh Vq8T+56kIVF8+fXid7LMAzuRPlI3LKy3euQ7fQem0dVroan41RMORlIXO1Y+kMdV DADeUQYSSdt7TQlPkj/gPKaxoK28Gt+oiItqZmVIzR9yHfBS07iZXIZkajtLwG44 ggGy9/Ura8YY77QvVwGbv7qrWdssjNjWMVxv9fR7Jql+leKY0VvsGM4RDWDzG75X nWdRtcabUA34omFSx7b2cKmMtwePr58F7R908DfjDo05kl2bnqCEy0eE6aBWVxn5 eiHA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1691799639; x=1691886039; bh=fWOcn0nNZIA9l XDMn/gOE15yHL22JMDzmHXN3J9S/p4=; b=vJNjAPtZbEAfvNkvoYgwuJ5O6e2/a ry0D8YQYBmcF7hSOxEzIqw+K4zqus25AW1FknqfBlIWXYCoctkLtIkVK4G0I1RtX kByv2wISy13jgW7xIxJzH4/w3oD1H7Mx5UR4VQ753jnH6/Z++6TfRnjcZexzUWzL 9lWglogQEwDrSlpOY/jgvGQ5UvcYSB+afR073h73SBuDYnC8SPCcmUAkTVqeDnTl 4+E9B+iGATvScblPQ2rnYVAKh1BWC9WP38ehmE8M7rL9F+LE3gbLIU5RAQn/kraj yMcyf/Cf93bxzGyWTEniwS695lippfq/qxoTvpFLBLppGYCFsqFRDjm0Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrleelgdeffecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdefhedmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddt jeenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeevteejgfejveegudekheeiueei ueeiveeuiedugeehveeugffgudeuleegleeiteenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 11 Aug 2023 20:20:37 -0400 (EDT) Date: Sat, 12 Aug 2023 09:20:32 +0900 From: Michael Paquier To: Thomas Munro Cc: Noah Misch , Kyotaro Horiguchi , exclusion@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17928: Standby fails to decode WAL on termination of primary Message-ID: References: <72bd036d-4f2a-8d50-b56e-6b1e3b9ba0a9@gmail.com> <20230710200012.GB3476234@rfd.leadboat.com> <20230711.155414.939136339819647605.horikyota.ntt@gmail.com> <20230717004905.GE3826297@rfd.leadboat.com> <20230811025808.GA2261232@rfd.leadboat.com> <20230811140008.GB2261449@rfd.leadboat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6fHT8cPsYwcSnxyP" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --6fHT8cPsYwcSnxyP Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Aug 12, 2023 at 11:56:45AM +1200, Thomas Munro wrote: > On Sat, Aug 12, 2023 at 2:00=E2=80=AFAM Noah Misch wr= ote: >> On Fri, Aug 11, 2023 at 03:08:26PM +0900, Michael Paquier wrote: >> I recall earlier messages theorizing that it was just harder to hit in v= 14, so >> I'm disinclined to stop at v15. I think the main choice is whether to s= top at >> v11 (normal choice) or v12 (worry about breaking the last v11 point rele= ase). >> I don't have a strong opinion between those. Okay. I wouldn't be inclined to patch v11 for that, FWIW, as this code path is touched by recovery and more. At least it does not seem=20 worth taking any risk compared to the potential gain. > Thanks for working on this. >=20 > I wonder if we need a more explicit way to construct pages with the > right bits to reach interesting test cases and get full enough > coverage... (Cf throwing SQL at the WAL to see if it sticks.) You mean SQL functions that write an arbitrary set of bytes at a given LSN, to trigger some expected behavior on a follow-up crash recovery? -- Michael --6fHT8cPsYwcSnxyP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmTW0FAACgkQnvQgOdby QH1YXw/+PQ32qlQ/LIxQAbIV4Q/yNVmyxNlfGOdVBGRqDMGyfIUlR02BEOltNF5W Gzb6DhYhv+kNf35Bum8cs7iIxSdVdgYHw8hZJwZvLaxbJ/3CeAiE52QDL6vbuzB3 KBGFnW4XIq5eEuXcG1is/YU0FF7z2WHgKLzoC2Kqx8/ti4l0jWV9fPR+UuHXvNl0 6KtbdIExCSQ5ntIoJ1mjoFRYuOQ5Enlrpt1c1xVYQ9FXBn2Ou6psSJLraUWh5Qw4 X8+A8ICZtwRiDfseKu03Fz07cr+7h8PixdOnW5opJ+PZSrTUXVbIkcPei5Td2+Ic qDgBReAYs5ocDDYVpwyiJuFkqJD0jAToHySZ9INxL+kRdxxhGjL2pOTRh29Fggub 2mAOx3dvUxAgyzDu+i3WMC311fON1/h8YXv1C5pTB4yUUN5jvvdFh7bnC+7vRUy5 NPUcppdfEj1/W/hLE+QBst2FlyEJuzLd9hdBRyObfJg9Or/vN/lbAwB0hQgmi7mh dJmGJE9EUK+50SP4eNBA5y3/u7y79E8uWtOPoLMsvufn+t28/ofEvrPpD2/BwYRl pfgVyEhc7NFayP9KuDnD1c33f4JC/3119qBS6Zb2OvJX8WVN77RAIdy4j2PKC5Dv hprYWKHHc5vGVKSB8tkUq2fVSMQUCTJjvSBBVXLGWQMYg+h8oiY= =ymZP -----END PGP SIGNATURE----- --6fHT8cPsYwcSnxyP--