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.96) (envelope-from ) id 1vzoF3-001L3X-2o for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Mar 2026 03:58:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vzoF2-001bFF-12 for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Mar 2026 03:58:44 +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.96) (envelope-from ) id 1vzoF2-001bF7-09 for pgsql-hackers@lists.postgresql.org; Tue, 10 Mar 2026 03:58:44 +0000 Received: from fhigh-b7-smtp.messagingengine.com ([202.12.124.158]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vzoF0-00000001OTy-29jw for pgsql-hackers@postgresql.org; Tue, 10 Mar 2026 03:58:43 +0000 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfhigh.stl.internal (Postfix) with ESMTP id B95167A0161; Mon, 9 Mar 2026 23:58:41 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Mon, 09 Mar 2026 23:58:41 -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:subject :subject:to:to; s=fm1; t=1773115121; x=1773201521; bh=8r24xbmmHr Yh5pd0u0JbF8jE1DCiCICuxoA0vT2Uw/g=; b=esrisvGhRiTVFzdtoldp33J1iE mOyMJNl0n8O1whbcO5uFM+25Jn2Z5x+XvHXi2/s5aX/9T3O0MmgfQvCdEt01dKXV +gfohNGWgH2XES9SzGIGOv0sraJZ8L21sNgUKKjsgbAZPa1G/GWmaso4kCACY2wN r/o5/vKLPW94uNMZEIbSNioKU8RFO2qHfio8SQpI9g5s8GKP/pSh/vHYAVfBd+Af vN/POV8dYEr7pBEJri6YEbmKzIZ3XLn7hP+JP0Xufg6v27wCiolTri3kiffAtPRo vakHqWzRUUEgbLm6QULf3gBatnhbEC/mevlc38Bdtj1czvfkKddff8IEo59A== 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:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1773115121; x=1773201521; bh=8r24xbmmHrYh5pd0u0JbF8jE1DCiCICuxoA 0vT2Uw/g=; b=hDKLOw1nVqTtmP4aHG0P+OIYCFKsonkE6uBTMh/gdBRFVzs9/Fa Fa+RKnBYusoMlJowM0zakEL+CJWudJKJzD9OqthbpzOAAJUX+OxVq6eNIgyxAHvG yuc5/WjnnhRoCroh1iQiEcB11sq7MZnirI9qfiZvseqQWrBPaNFsJbAUBkR7NKnZ ofJKP3pRkKDR6OVvqh/A8HA9uKO75UFRJ7NAwM85wwlHiSXzkKIvUO5pl7wIBAtm +p5YONWmgt1kybWQXXwQSVP3268pCbl+taPxuPcwl+p6Q/FCZmEl6zwUHWQAgjdf aCCw6ykO8NK3As2W/Kgif3EUeHVUeUWJnCg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvkedttdefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeggeeg fffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidp nhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepnhhith hinhhjrgguhhgrvhhpohhsthhgrhgvshesghhmrghilhdrtghomhdprhgtphhtthhopehp ghhsqhhlqdhhrggtkhgvrhhssehpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 9 Mar 2026 23:58:40 -0400 (EDT) Date: Tue, 10 Mar 2026 12:58:36 +0900 From: Michael Paquier To: Nitin Jadhav Cc: Pg Hackers Subject: Re: Change =?utf-8?B?Y2hlY2twb2ludOKAkXJl?= =?utf-8?Q?cord=E2=80=91missing?= PANIC to FATAL Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PjIW71VUCNRN2SJI" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --PjIW71VUCNRN2SJI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 06, 2026 at 11:02:41AM +0530, Nitin Jadhav wrote: > Patch 0001 adjusts the error severity during crash recovery when the > checkpoint record referenced by pg_control cannot be located and no > backup_label file is present. The error is lowered from PANIC to > FATAL. This patch also adds a new TAP test that verifies startup fails > with a clear FATAL error. The test is straightforward: it removes the > WAL segment containing the checkpoint record and confirms that the > server reports the expected error. There could be one possibility for 0001 to be unstable, actually. One could imagine that by getting the segment from a live server things could fail: if the run is very slow then we may finish with an incorrect record. It would be possibe to use pg_controldata once the server has been shut down, but we should be on the same segment anyway because nothing happens on the server, so I have let the test are you have suggested, and applied this one. You have missed an update in meson.build, and I am not sure that there was a need for renaming 050, either. > Missing checkpoint WAL segment referenced by backup_label: > This test uses an online backup to create a backup_label file, > extracts the checkpoint record information from it, removes the > corresponding WAL segment, and verifies that the server reports the > expected error. >=20 > Missing redo WAL segment referenced by the checkpoint: > In this test, redo and checkpoint records are forced into different > WAL segments using injection points. A cold backup is then taken, with > an explicit backup_label created in the restored cluster. The WAL > segment containing the redo record is removed, and startup is expected > to fail with the appropriate error message. These two are very close to the existing tests that we have on HEAD now, could it be better to group them together instead? Particularly, 054 reuses the injection point trick in what is clearly a copy-paste taken from 050. Avoiding this duplication may be nice. -- Michael --PjIW71VUCNRN2SJI Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmmvluwACgkQnvQgOdby QH0YDhAApkwyppwkMIbjgHWb2bz557hUkPOEIJnDrnkJEYDXZmsT182YqPq2aoXe KhYXjzSb9lbRPby5iu8pNiU6mG8/WSaUg4RsyglOlpUwwuKCoquHI+kHrHVNptVD DOYaee72PcZ66XYauKleTharc+SISKt+98TUVSGS0AyC+lHaGl85cbq0tj14RNsi 6jZX81qTzH200FMckBr1P3SECIMZiVHAx/cwc/HNB97rv0NyZF0VolgrO+NjoHtU OeSmTC0EcvCuQiiCwfvzAcPjAjziXqNBZvN1DRUV3wML530LfyhNroj3Ic4JcICn FnarwHX6IPEc30/HwigZjdmn3RkJDU5VgGzXpeXIVqwYosaiX5qOEuJQWOZKd5nO WMf1rp8LiRP9i9FRDlTYP15Sy5DSjlf8+FUpB5Tb2XxnOCjFzGGWgZVkz9v6Pakp QkNI1O8t16D4rKdjpyVTINcXa1a+5/3UzZC4/FRFUqTuyV/5u0KA10s5jbZ6fyqm yYQyk55MfgFWDNAJlEuuxDZgqFyAccsNXaaifEZTJjvFG9lKmMfBVurAbaHmJ6o+ Bcsl+qYHPDm0MDlENHj7L2dcnbyMK1o/ZVf0XypkChrVIx9fy10BPl3YlVvuXN76 1aG8AuLRom5KOY/ZIrIJkgsv9HVMHVzXlYt1OG7SOL0wxhRgbrg= =jA8W -----END PGP SIGNATURE----- --PjIW71VUCNRN2SJI--