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 1qqq6W-001IMB-NM for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Oct 2023 07:27:32 +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 1qqq6T-004IsE-JO for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Oct 2023 07:27:30 +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 1qqq6T-004Is4-AL for pgsql-hackers@lists.postgresql.org; Thu, 12 Oct 2023 07:27:30 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qqq6Q-0007s7-DH for pgsql-hackers@postgresql.org; Thu, 12 Oct 2023 07:27:29 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id BFF6E5C0466; Thu, 12 Oct 2023 03:27:25 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 12 Oct 2023 03:27:25 -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=fm2; t=1697095645; x=1697182045; bh=GZ uh6zwsdM6VaSsaYHKoGpuWEebjAn1fHmHZ3RroicM=; b=RRZZoP1iq9Z5ILTrZU G0EIg3Feu8e65oCkW7JZun7XE540XDrB7GXAeAEq4j9WDFH5d+WfQ/xsxn3IwinT 49St1a4fhWWCxv0pO9czy61oJqDpvtPoaNOqIBAynDW5ITaaKogMpbf7G6vvfE56 jLMiCV/U+Ir0+/5aBOFZ/NPDp+1fxPMTNyIymEt6+8fm3ZqmailfWNErlmGskhC4 2fewuUmS1m4ugdrZcg7L37uuFXAaHx20MTycvVJaXUJA0m+5mUmdXA4ys3gWXu4j kVZuxiqz0R1+PYYS9e7usF7PQ0VHSQwhD8puT3SA3UoCwgl/iSEVhj1lm92Es1uZ /LSw== 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=fm2; t=1697095645; x=1697182045; bh=GZuh6zwsdM6Va SsaYHKoGpuWEebjAn1fHmHZ3RroicM=; b=qltP4iGXKGPlq5JicTrZyyVRrvyT3 uVQVyj8aBckeMIU+o9ZkPP1vxYurf0heM5aa0LJ13CRsPe5FC6TOOWv9h5m+tvaL LHYvEov7Z/bZX0EDaKNI1jO5pXoLE75vq782CguVQv0tG7Ta8RpPKuj6wfetn26o JvUgaw+BNd5etVOc56u5Af176vPqCUA5oqHXAGPDbXk9RjUQwogB7YouHIajTI/5 cTr6724rNBxoX2MbmnvpVwIbeLOPYRJd+lSUZ4P+OZAOzZI3JqriudXryjMQn7fM 2rmlYf7R807+OIA7x+rsOLA9NqmjGI2X8rUhMmkn9SEpmWvco5LPH9L/g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrheelgdduudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 12 Oct 2023 03:27:23 -0400 (EDT) Date: Thu, 12 Oct 2023 16:27:19 +0900 From: Michael Paquier To: Robert Haas Cc: Andres Freund , Dilip Kumar , Heikki Linnakangas , pgsql-hackers Subject: Re: New WAL record to detect the checkpoint redo location Message-ID: References: <20230714151626.rhgae7taigk2xrq7@awork3.anarazel.de> <20231005183400.n5myso7vu6crd656@alap3.anarazel.de> <20231009204702.cy3ilp6wgh7a5qms@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="CkGKyqGfRcFmhlYg" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --CkGKyqGfRcFmhlYg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 10, 2023 at 02:43:34PM -0400, Robert Haas wrote: > - I combined what were previously 0002 and 0003 into a single patch, > since that's how this would get committed. >=20 > - I fixed up some comments. >=20 > - I updated commit messages. >=20 > Hopefully this is getting close to good enough. I have looked at 0001, for now.. And it looks OK to me. + * Nonetheless, this case is simpler than the normal cases handled + * above, which must check for changes in doPageWrites and RedoRecP= tr. + * Those checks are only needed for records that can contain + * full-pages images, and an XLOG_SWITCH record never does. + Assert(fpw_lsn =3D=3D InvalidXLogRecPtr); Right, that's the core reason behind the refactoring. The assertion is a good idea. -- Michael --CkGKyqGfRcFmhlYg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmUnn9cACgkQnvQgOdby QH17Jg//QhufiGNjFdSXLD+6R3dTmfvMadLY5SYEknru9d3M0VExNU/L1sHvpPc0 lN5AxHHfOpbxQTjRxbTuGmmkj1yNI0EFhZhvKTsQd7Q+6592kjhG8V0fxuwlgD7j D/MEBNs+Gl/02oyXL/2weCeIh9DqclvqlRhxDTMWLdQ4Z0VFeDr7T2hapY50lsLX vTGvzwOnRd+3avnABAi1Qp0C1dyPey/FxwZHouPV/dKfy8Kl1UMegMLyniKkj57Y NGQBLAUfxjgH5zrzrLApCKZcdbMqXsEhFKG/kWNlY4DflsXcDp9U5GeDeFnHuMAF 5bkOfwedebFd97L7n1g2OD5ZZ3utlpO5je8a4pCM48UkNHQTQpt4FPpHGx8oGOgO AzL8NDfjUDOXaLsD8POFDoHPhcvyCa8aRT6B6D6cMMqcssRj1hITW90V1giDxzqc xlcBVKzlEcJy6eJEW0UFXFpkYME7fdDPKYcYG96uXjcHBmU9im4Y5/RYT1/0mttS LhCVvm7qTjdQ4iYjZmDQgg7h0Bjnv651b4EB71FP0EgedWizkQTLQX1FjgrVZFkX vnbq4GpdNheZ4R5f7XmjgOOJkl1Gwz1PcdltUugrucV1AOw5eDOy3+Rtkchrsh+X a+5/w5/pQE3xf3ZBWhq05b1nqn5BVfLSANq18NOpi7ualxV8nsA= =wvhe -----END PGP SIGNATURE----- --CkGKyqGfRcFmhlYg--