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 1tl8fc-009bFI-74 for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Feb 2025 15:41:00 +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 1tl8fZ-008QAP-W0 for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Feb 2025 15:40:58 +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 1tl8fZ-008QAH-Kv for pgsql-hackers@lists.postgresql.org; Thu, 20 Feb 2025 15:40:57 +0000 Received: from glass.ash.relay.mailchannels.net ([23.83.222.70]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tl8fW-001z3q-2c for pgsql-hackers@postgresql.org; Thu, 20 Feb 2025 15:40:56 +0000 X-Sender-Id: hostingeremail|x-authuser|david@pgbackrest.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 6137A2067D; Thu, 20 Feb 2025 15:40:51 +0000 (UTC) Received: from uk-fast-smtpout5.hostinger.io (100-99-192-59.trex-nlb.outbound.svc.cluster.local [100.99.192.59]) (Authenticated sender: hostingeremail) by relay.mailchannels.net (Postfix) with ESMTPA id 4665321E72; Thu, 20 Feb 2025 15:40:50 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1740066051; a=rsa-sha256; cv=none; b=evF2v7ZPXxkhKamz1J4HDVNr5QYRl8xazatmbS/Hg5dNi6Kg4VsVzIID5D8fJCWiJ5oXeA kRC2dkNwLCPBG0Gkn/Yce0TJq9tSSBoW2IMt3ExjkdDmvXDpu2jzWdQqrnVLMb3PB6/X1c bnK3+KnPnufiPR0WqY6YEYfgqwNwUfBD0Ul9IDCrTGlb0WSnVCP8tsuDTzCYdAFFB4mjvv g2Xp16JcmTcKX8YzjeXEOqHN+xHh964NVAn+xJMk3sqpzokXq2NAX81ntwHCudr9QQPT+5 jo3vlMXyMJlhWM+D83U9BYn22WJAkVGA2Pp9jsp8OhmMp63R1VC/sp+WaiA3Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1740066051; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=SeK5TXpTj3jeA1y3Dfiu2gkO73FBYiiZ/ZGOD++WClk=; b=lvUG5CyIKx0d6niUsoihvER5jco/mFoYCUhL8vXus7g19r2lKBGlRPJOz0UEky/Ftffmsl GnmuThLvlLcuxZwYsF9tTBJ933AimKCfWm25OD8RsGxYsxIc6sfwRCtIIc58yrlMZlSQbI pReGz+xZ8/os2+9XKBCy7wa8eyXzFgJ8+YsvkZ4N1Bx8RLYWWoq8t/n9F6qOVIdxvKoy1n Pq65u68REx/lFwLTU2a7U/bSTmN3IOw+KCoD9pJxblVbSQMli7GhJKOoAIVIJjdYEGz5xN DjLM5A1uuaqm81z7APfFNtWjhFLxVZsiU8i/3kndeWZAlQyY834EQvGZ2P/Hdg== ARC-Authentication-Results: i=1; rspamd-6d7cc6b78d-chjwz; auth=pass smtp.auth=hostingeremail smtp.mailfrom=david@pgbackrest.org X-Sender-Id: hostingeremail|x-authuser|david@pgbackrest.org X-MC-Relay: Neutral X-MailChannels-SenderId: hostingeremail|x-authuser|david@pgbackrest.org X-MailChannels-Auth-Id: hostingeremail X-Arch-Irritate: 0c7b72315fcd80ae_1740066051226_1921694161 X-MC-Loop-Signature: 1740066051226:3604995927 X-MC-Ingress-Time: 1740066051226 Received: from uk-fast-smtpout5.hostinger.io (uk-fast-smtpout5.hostinger.io [31.220.23.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.99.192.59 (trex/7.0.2); Thu, 20 Feb 2025 15:40:51 +0000 Received: from [10.5.0.2] (unknown [45.88.220.36]) (Authenticated sender: david@pgbackrest.org) by smtp.hostinger.com (smtp.hostinger.com) with ESMTPSA id 4YzHXb1tCbz5ZBgc; Thu, 20 Feb 2025 15:40:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgbackrest.org; s=hostingermail1; t=1740066048; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SeK5TXpTj3jeA1y3Dfiu2gkO73FBYiiZ/ZGOD++WClk=; b=Wm0lpZEDko+gozwJbX3laOpdghvLzPzbeox9q1U8mNdlMfEyHAKuxr2MeK5GbehITlz/jg WU6wgzSZw/SV8Ml5eJ5kPOaEbb0jiXmzrq5jQmP2/4S2pak9Cl7d7atTgtQ3wQBVZp/QFe UK/1xQTjqHvoqqHAgx4jGD/QF9fgwEUX5dxatOEKqKsLEsNdoE5SOQ0fEDoElNPEZBqfMB cQTq61ySi36/8prXA6ApOnXOUy18deqOROl3EGEc5UG96dpPSGjfxQa15CvFvDXyJef9Gb LSW5GhnvHCMARYe/1fmQJxkXL2FRd+aAKmkBlmq3rxXYtipAkB0yVE9Plpr/1w== Message-ID: <6273ef0b-033b-4ac7-ab05-71a04e7ac626@pgbackrest.org> MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Fix logging for invalid recovery timeline To: Michael Paquier Cc: =?UTF-8?Q?Benoit_Lobr=C3=A9au?= , "Andrey M. Borodin" , Pg Hackers References: <4ed10bc8-5513-4d8e-8643-8abcaa08336d@dalibo.com> <2765f538-b06f-4e57-bcb2-9ca1dc6f487d@pgbackrest.org> Content-Language: en-US From: David Steele In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 20 Feb 2025 15:40:47 +0000 (UTC) X-CM-Envelope: MS4xfO9MC/1Jc/HVHe+CQufAlmrUSF4U8i5ZV/O6VAnMbdYhs44WVREYSTQFobpQ4nVXsLlfC8CwhXafmf7RMKl9PAmmSxHEfU1qFv6g2tz3GqMY12UCEKr4 qNkmGZfUtz0URs+LlavfL8EVZrVgCtlPJkkWst2o1/22dcfsZDXq3LGGn37wVQAJTHaa/98AINHUmggN20SXSEzJ51OO8GBJ8GSsFsoGbI40t9ZkjTAOEe+o O2J1ElOMvtRmmCOyJvDRYzlhj5NoHq6FPfNnR14pCZu61SR69ZSyZBWGGouLjAsN X-CM-Analysis: v=2.4 cv=e9hUSrp/ c=1 sm=1 tr=0 ts=67b74d00 a=pfqqApoh8CxDsOMGhc+LDw==:117 a=pfqqApoh8CxDsOMGhc+LDw==:17 a=IkcTkHD0fZMA:10 a=k9TsPdEpXMyCgRu59S4A:9 a=QEXdDO2ut3YA:10 X-AuthUser: david@pgbackrest.org List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2/19/25 19:45, Michael Paquier wrote: > On Wed, Feb 19, 2025 at 05:35:18PM +0000, David Steele wrote: >> I like this idea but I would prefer to get the patch committed as-is first. >> The reason is that I'm hoping to see this batch-patched (since it is a bug) >> and that is less likely if the message wording is change. > > (Had this thread flagged as a TODO for some time, sorry for not > chiming in earlier.) No worries. Thank you for having a look. >> Your idea would be perfect going forward, though. > > We have a few logs that already track this information, but perhaps > that's better to track this extra element in the FATAL if you have > log_min_messages at fatal where LOG would not show up? Feel free to > propose a separate patch if you think that this can be improved. Benoit -- this was your idea. Did you want to submit a patch yourself? > At a27048cbcb58, the check is done based on the copy of the checkpoint > record, and the log is generated based on the checkpoint data in the > control file. 4a92a1c3d1c3 has begun retrieving the replay TLI from > the backup label. v13 and v14 have this issue, but I'm not really > tempted to poke at the beast more than necessary as this code had a > lot of changes in the last couple of years, with few to no complaints > as far as I am aware. Fair enough -- this is subtle enough that I doubt almost anyone is going to notice and the general content of the error message is not really changed by the incorrect values. > Applied down to v15 where we have xlogrecovery.c, then. Thanks for > the report! Thank you for the commit! Regards, -David