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 1qtLyH-00C5Ci-11 for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Oct 2023 05:53:25 +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 1qtLyE-00E2qQ-14 for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Oct 2023 05:53:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qtLyC-00E2qI-VG for pgsql-hackers@lists.postgresql.org; Thu, 19 Oct 2023 05:53:22 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qtLyA-001Cxl-Iz for pgsql-hackers@postgresql.org; Thu, 19 Oct 2023 05:53:20 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.nyi.internal (Postfix) with ESMTP id B073F5C0254; Thu, 19 Oct 2023 01:53:17 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Thu, 19 Oct 2023 01:53:17 -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=1697694797; x=1697781197; bh=Cs tHg/jT999az95Wdu/Xoi57sV53PSBZaxtZEfWi4W8=; b=X3EC6omIuCjmzN/+Ng jcmBWPJkypck1vBrPXOw2TnX50THEgthxKP5ADOc1UfSQ23ep1VAed06UpCPmRcZ NeOZLlVRV6ITidFXoeUzH9x9EPIK5gF/KSZrLvD7gnNuIa4OKkLxS52Cn4jHaNX5 ctSbrR7YoCSCJe4j1FqYi+9pGkME1+QSsSqGJUOoKwCgvOmqixMxSe1fA7qO4VP7 C8m6L/uHQ4O0XLTb6l2d8/vLD6sa37bZNgPKRqQ6jLN63+5fn8z+jUtdi2LXjHw3 ASDZlM30G75NSlYnaS9nGj2A0MX0yeKyn1gCGdzkzfaaBy8khtU88Mss365ruFBz KicA== 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=1697694797; x=1697781197; bh=CstHg/jT999az 95Wdu/Xoi57sV53PSBZaxtZEfWi4W8=; b=MNaPsQgvbjfjGiaKlDBTM1cqZXAaB raKrRAfeL6MqqoJ5dnN2MyMdyQ1VwF/VNZ9tD0NU6G3r2HcEhjRxgL/J52i3j94F Aa1C+cZ7QK2re95kNcJ70XjiccmS26kWo7vYM7nzPM3EfHHVPhiXi/UilhtqU7I1 n6TjJYNsNisB727VM9s3U5UNorgI92ilUu1DVAI86E79Xx71x/MHcBriz6bTSlgm MEXI7D1bp+1OzdSqYBzDrobtSJwEaifq6JTRjawkjewlssOY3TXM6CW594ebdAqG 4XkBHhVH4x1DetTz9dss5zl6L98NGO6pnD7CvthW5I0MTtz3iQ/tgp0uA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrjeehgdellecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeg geffhfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 19 Oct 2023 01:53:15 -0400 (EDT) Date: Thu, 19 Oct 2023 14:53:12 +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: <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="AVgj33gvoury7yLG" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --AVgj33gvoury7yLG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 18, 2023 at 10:24:50AM -0400, Robert Haas wrote: > I added a variant of this test case. Here's v10. +-- Verify that an XLOG_CHECKPOINT_REDO record begins at precisely the redo= LSN +-- of the checkpoint we just performed. +SELECT redo_lsn FROM pg_control_checkpoint() \gset +SELECT start_lsn =3D :'redo_lsn'::pg_lsn AS same_lsn, resource_manager, + record_type FROM pg_get_wal_record_info(:'redo_lsn'); + same_lsn | resource_manager | record_type =20 +----------+------------------+----------------- + t | XLOG | CHECKPOINT_REDO +(1 row) Seems fine to me. Thanks for considering the idea. -- Michael --AVgj33gvoury7yLG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmUwxEgACgkQnvQgOdby QH0P0A/9HNy+pgdvEWAYmoTXKicglbB89CEds0+Rnd9zmSOmimmtsHQnmtgj1Xgt b9V3XQFzqj5pVFCUVSGhRf3IYS9NPhpjkdOev5JQjZ/DyhdgNcDBz4lKa8xZlsBB Gz/H3lxq71jWB2xuIeN68i51Ck42ojFXuODqaD8Y8GuGgyptVlP9+50GZi5s9a0G mvvCJMOPWW0uCAJeOxgd3gHEGzBpHAC9/svbF+vgWNK1iInBLRRagfHF0LLqLvj0 tL3lNs9IXkVe0C0ztPU8l76kc/Kz8PSYv2hwbzhusMy87yi5B0CyTjolAuX1V84o 4y7+fjiofKwsnS0LtQjW41UpNbUmAGxGgibQzGXwhyJSZPfH/iXNERN6Eans5VYi m6xDklqoqW0eijO1T8NnMGMwUnU6EQcrnhqy/6BYUDTcnR9ZJhaCOCZiDiSILSK2 UoBPRO6ou6drPIeAy1kAVtUWguD8cANC205dPQ9rlDblnGx9wrACN7G878WbMKUX +v0/f46wuVnIlYC393oX2U71XAUAhnf4nDQ0Kh41ALpm707/xb6g12URZzKUSBGh driG3LTyK0O/QliNdi3dhjmFKt/KBXXaTtz4mB/S2TvD8BDeDJ5NJ38IawZDria8 SSiTe/TbMDEwRwXJ0cdo92/Y9ygUzXBRKiOTviXfCYN5u0463I8= =GzTz -----END PGP SIGNATURE----- --AVgj33gvoury7yLG--