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 1vsuBf-007j2f-1a for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Feb 2026 02:54:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vsuBd-001UEP-0Q for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Feb 2026 02:54:41 +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 1vsuBc-001UEF-23 for pgsql-hackers@lists.postgresql.org; Thu, 19 Feb 2026 02:54:40 +0000 Received: from mail-vk1-xa2c.google.com ([2607:f8b0:4864:20::a2c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vsuBZ-000000004J2-3RDk for pgsql-hackers@postgresql.org; Thu, 19 Feb 2026 02:54:39 +0000 Received: by mail-vk1-xa2c.google.com with SMTP id 71dfb90a1353d-5674cd243d9so1017999e0c.0 for ; Wed, 18 Feb 2026 18:54:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1771469678; cv=none; d=google.com; s=arc-20240605; b=DFDdvgjwVM6/Z26XHEy0IGWQt0aaGGrGOsFOtzEZeadgl5hK5Tod9+D4MEjUAs8cs6 51Sesf0O4UfaflIoV88lgiA5I5zUlXzRdqeMjPm2je4qA9ZUQcJlg86Kfnl/MjlvXo2S e7GiM4G2U7Wf9ZMB1gQ1Ex4ZiIEPyREYi2/Zf66b99b5CFnOmhsY0JC+HeUGKb2msb1s ogKyd2I6tzxMdE0lvIyDr4wVm5cn9RIN32mHLqNhwSThwxSpBXlDSSbDNIk9L23tfdi/ gJhBLWkv24wicbLtOswBYSXeWS8Rk+iD8qlQHE/y72CX1YXmgUiO8earcTMCvnx0i/A3 e6RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=7i13IlvtpUMRISIIoKWtav7sk9pXQFN3ZcLT/njf+sQ=; fh=3zMMPOxIIHNL2+7PBICwau8mgvK34o8KMX7q9j6cx+c=; b=X8XK1g/Oz92N2bssUFg1igQKYhc/YnBr7RJaXJS7Y6/ZwvXIAWl0YQLPwaK40xhsbS rdDcyg/AhEC3AUpJc4djkGdvXP1iKTFWXRsEaJxkiHOJF0ky3Fii5XH2rP8gVhKD/W2o mwmppSom5ZEGjGX9CORDOLmZLFEa9fSl+GSVptDqgUJ6l3eF6dGzs8IFg/tWg2cd3w0Y 2YQrTMePIDKpQsBtrUJMQDbu4bTFx8ByGxXjIyDfeJXppysKqKIGy7wbCdEpbQFeCRZF fvac5qpoCL7ZNbxQODmajRimaVE5sB5swmcKb3UzekSKiscKok6bw7DgeSIaCrYIp/Hl RUhQ==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771469678; x=1772074478; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7i13IlvtpUMRISIIoKWtav7sk9pXQFN3ZcLT/njf+sQ=; b=PTMYoWBENTN4rX5mSSsfwg04x0NkscsTuIPu7Y6OqDJqJAw8lsoqnPO6DsuRl9IYBl IVkFK0iFlc93bS/FGo+d5xqNqlCGcFyrXggm03wUBFKBlKTPvAZ6AR3T7mWWdXIfc0Dt Mp84ZjOiwDL6w13qWO6NvqyKArwkSySLKNFnJ10O5Dy5uPVRlHpxarYomVTO6sk3ruyL w+o2VllcWKkqSOvdWO/Cqrc/wfCQuDgASSrEHDNZ5CXhYsRcU6vYKlsVGOW2yGSLpb3W lnuwQXI5uFW+uV7mqAJkS7oKHp/HFIyhsX14rqq23d4z+KoxtEBkiHHdZ+sYr9+UGY7D XqzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771469678; x=1772074478; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=7i13IlvtpUMRISIIoKWtav7sk9pXQFN3ZcLT/njf+sQ=; b=qwn/GKzBviy9ec3w0uzSumq6crjRdRSBfiUjl3E+EwRbVenSo4gEPD60apefLASSwD O9tFyCbnW8IcjFFp81cNEciH+ASkqX0GwAuli1IJrdJ0hmUGtaA5jM+oAEBd+B5N3liV Kxf8H08yNrpcAcfcgoVZ01izPR7zlpuHf2DuMJf+lf83e3jnY52VmWT2H5HjHuN5tF3w 0UMskfCnlyQuaYFZXjz3PVFH/BPiQBMpbj1GuD64zspPFF41tok/Isf9bFMkuBULt8F/ Ypl8v0AbHbJ2gwQJQfUsXd775mlN/K6RJ1TJhLSS2olMQ+ZQpXPeWvVfsirjEY19smGD RTjQ== X-Gm-Message-State: AOJu0Yypx7X53qnts239QVafPwz4lFqq5m3dPd2nX62WO55M8uf4yp1K azwAkoQPKlLhZo8qizdwkozBh1H8lrhL5FGV/qbyHrfPr7tYwpHZlTXjNnt/WvPjbw8V65ZLQli obiA68E2iWzKJABwF/zsZt7+nFOYTUfQ= X-Gm-Gg: AZuq6aJPuGmKVFJF7gJOWG+O55vmzRoLm7gNLDTh0hw6g7DYNeX3PVI2wxKbmiPhMMy 00WNIEl1xTGGUjBENDGGtiz/301hGbIODKYrEcvQfJFTMDHXSkHudZvnwiMxpnTeoNPBi3YHBOP C2k+DM75Rf7X1Q6ZqUYDwJ9998h3/PiI9kUBprHhjdEnYrX2SOZVtib+DSEqYpH1R5E2o69WQPq iXhD9I/mHnPbUN5ei9fu/Ds5EAnb1XuH4MgKLbTvylX8GT0310NfIsvDO8dfjYLhE5OmqTfFQtg svcUCA== X-Received: by 2002:a05:6102:4190:b0:5f1:5be2:114b with SMTP id ada2fe7eead31-5fe90c4a53dmr236128137.20.1771469678115; Wed, 18 Feb 2026 18:54:38 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Nitin Jadhav Date: Thu, 19 Feb 2026 08:24:02 +0530 X-Gm-Features: AaiRm50ycu8WiHzNB9BP9g8EO7Z6LEmabbwOX91DPiKAwwUr7rf4lpuDZeTTsRU Message-ID: Subject: =?UTF-8?Q?Re=3A_Change_checkpoint=E2=80=91record=E2=80=91missing_PANIC_to_FA?= =?UTF-8?Q?TAL?= To: Michael Paquier Cc: Pg Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Michael, Thanks for the detailed feedback. > For clarity's sake, we are talking about lowering this one in > xlogrecovery.c, which relates to the code path where these is no > backup_label file: > ereport(PANIC, > errmsg("could not locate a valid checkpoint record at %X/%08X", > LSN_FORMAT_ARGS(CheckPointLoc))); I agree that case (1) is sufficient for the purpose of this change. I mentioned the scenarios where a backup_label file exists mainly to consider additional coverage in this area, but I agree those would only be bonuses, as you note later. > For the sake of the change from the PANIC to FATAL mentioned at the > top of this message, (1) would be enough. > > The two cases of (2) I'm mentioning would be nice bonuses. I would > recommend to double-check first if we trigger these errors in some > tests of the existing tests, actually, perhaps we don't need to add > anything except a check in some node's logs for the error string > patterns wanted. I agree with your assessment. Case (1) is enough for this change, and the cases in (2) would be nice bonuses. I=E2=80=99m fine with dropping case= s (3), (4) for now. I had a quick look at the existing recovery TAP tests and didn=E2=80=99t immediately find a case where simply adding log checks would cover these error paths, but I=E2=80=99ll double=E2=80=91check once more before s= ending the patch. I=E2=80=99ll work on this and share the patch soon. Best Regards, Nitin Jadhav Azure Database for PostgreSQL Microsoft