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 1w2WBg-000MUO-25 for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Mar 2026 15:18:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w2WBf-002Wt1-1M for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Mar 2026 15:18:27 +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.96) (envelope-from ) id 1w2WBf-002Wst-0J for pgsql-hackers@lists.postgresql.org; Tue, 17 Mar 2026 15:18:27 +0000 Received: from mail-oo1-xc2f.google.com ([2607:f8b0:4864:20::c2f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w2WBc-00000000cij-1Dof for pgsql-hackers@postgresql.org; Tue, 17 Mar 2026 15:18:26 +0000 Received: by mail-oo1-xc2f.google.com with SMTP id 006d021491bc7-67bd4a858d2so1300036eaf.3 for ; Tue, 17 Mar 2026 08:18:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773760702; cv=none; d=google.com; s=arc-20240605; b=RxfPokOqbS9KjnA4Qie3Zhydd2h9fBF8805rPVjv6MKBZbPnymEEoRPZv2m5QwbzMB /4h0jth7y8Wdrl9eI9aU6wRZuLjE/7gL0SP5izxfZZE7DjVrxn3+sq6xBm+lBpigilX0 11MpZXOyLNCuHRTI678V857eihKu1WKySjH05WGAdrjR+hqyi+RspF/oHqyG9+bd8XFT Z6KRppKsPvlOjYLFlQ/lDdnsNxKfd5mxJ6tk6wP80sKVGcjvBFcG5psNL2QY9e213koW 2n/rktd4/CuA78yCICrjxYi8A/gsewKcYC2KClvpLHeGizd775XXi/rudP/xr5qO+tfH eKOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=foZpSs70NyTnId7qrMZORbYO4LloGU98D40b6i1hCfI=; fh=qPOL02Fhc0lvx6SwxeFOT20dyXi4JWwTZsVuHZPMeLU=; b=JFp5cY8RlmcKQhj4G2PmwLvRuP6Xc/4NXBZwscZNskMFbxbcaSJId4IaKA5VhScLy2 vgKbnqXnX0QPGQFaq0JVeVgHZRl2vFmb+6ZebMXZHtiIBaYDE3+UMigdnEdacxwtwQKj CUzLhOcrPuAQ3M+eh4dnMcn+p9gym4aDkJ09GrjEvehbhT14vQyUtDmqTYoMYQAsG0eA oHqOhuJhYsnL9HA81D6v6+zSNXosU7+nl9wlbsHyprJ2g5VTSiMKLB00vBAKB7N00R8P 25nRL26fEf0y8IsettQsWKMrnTicqQhjFj1ZpkO1+AKHB23riBEeyUt0fPGUa/ashwUz HNzA==; 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=1773760702; x=1774365502; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=foZpSs70NyTnId7qrMZORbYO4LloGU98D40b6i1hCfI=; b=H/G2o69ryCkBnRxaJao10EBjHAZjEhRTHX7DdPHvClyTfDS2uk3KIqDeiXTW057mpZ RUm3EgaFVUxHD7LNgL/5BPrXyx3ltUy42xKc5J/3YSzTZ0gw4mEv52HB0UGZleXajy5q q8R4uJxmXzbi95YDE4JYoc5hvoli3lxDaHncBVgMUz1uxuG5PdWVGrhRTKkmAmJpNKTv 4qpqfTfaarFolHoxZqtTecarGlFc8T3G04IiEY9OPwpMBqS6Xi1aUpX8F9A+ROGnw2Nd h2PuNEnup0J9CvG0ZvGU0Vupk2ce4O551DcxhoQvuBbkojObkymhr8I8WXdV9QSWu36y bZlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773760702; x=1774365502; h=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=foZpSs70NyTnId7qrMZORbYO4LloGU98D40b6i1hCfI=; b=hgzXgyoXxqyMs3QJFnOyY2UWWOkOKS0RgcCyWcu1P6YJuy9EbmXlUSRGzWY0j2O9xD 07FKumEzgLr5IOqd1P21spKYqxgSVVOUAdF5vRwppzDCWhFiak7RUz1xFquQcZNzFzLd dYZR2jnvYN4RzNnrOVR8kZ6gA8Tggu7VEkOX+jvPRD3jns5mQVmQJDRdE4WuTOLaPkJh pQ4CCK1PC0xiaTi52dsdGmfXcwE/U21PLDaQvGkCXVIZKhd8WRe0L2zVc9LnKuavE8jq 3GUGq82Vfe8F04hwK3TK9tHiUswZhqvuPu6wFlLV5yT/43DYPu+UWIpBAfiVl7aT0N67 zRBw== X-Forwarded-Encrypted: i=1; AJvYcCX4TKiPC8taoNkj13r+1TGC0CzOuzuvrubb6NnzQM+ypNYyGdbkJ1BPTsnpPZsmB/OkxRYB/7OhQB9aoAgR@postgresql.org X-Gm-Message-State: AOJu0YzgTq3UUzQ+aAJ/oOHVeDrO+yae8ykYKytW3ZsmSaeBJ3fTbM5P AmmLou35ZWAEIi1WAHGQDt3EThvj4oaRDkQedhyY1KTWjeao1iuAV6Kbwdqhd946Gc75qLJIF5k o/LBMU0Q1d5pfujTE0IvK073o4ANl5xI= X-Gm-Gg: ATEYQzx+9MZuIZv2nRXpm4R61jkLjv4AFwUDwbOquwSqCydCWo3plTV64/8v5Fk6ZY4 XLo0ohIqSgrXfoakMdJn3mXn8aYq95za2AhJ9awUXg+HmDd72cLMOoiXosHhtbpLB1rXvZ+iRhu kNnTjKkx6ZwSFNFpGHm5XttGVS8IBTgQ/WD65NY1p4K7GsXpj8CHTjZMYuzvym8ZZIJGFDPMWk5 smfCyPEgBSKMmKCUi5FcK3J57SvFSOG/Aw1jDpf56YTvfhul9toMvbfFLgi4BynMvmgIoKSdoU+ BhBVyyvWl/avC67cAiBdzwDtbjtMig1XQlUEb67zXNw2Ql94aZ0dEkdj52xjEHURv6qL2h01Boz S X-Received: by 2002:a05:6820:806:b0:67b:e032:dfcb with SMTP id 006d021491bc7-67be032fe7dmr10427290eaf.48.1773760702204; Tue, 17 Mar 2026 08:18:22 -0700 (PDT) MIME-Version: 1.0 References: <9e8b7ee9-4a16-477a-baa5-0cdf37a04798@pgbackrest.org> <8733e942-56fc-4542-9351-63f213f7e23c@pgbackrest.org> <2d228e82-02b5-4e55-a082-1ce26fae5f0f@pgbackrest.org> <832093c9-27f3-40fe-88d8-ae416927eacb@pgbackrest.org> In-Reply-To: <832093c9-27f3-40fe-88d8-ae416927eacb@pgbackrest.org> From: =?UTF-8?Q?H=C3=BCseyin_Demir?= Date: Tue, 17 Mar 2026 16:18:11 +0100 X-Gm-Features: AaiRm5196uqOW8BYRZ21yAvDP73tTgfqkXoy3kNcGQwbsExEZoye9cKBI7KIGyY Message-ID: Subject: Re: Improve checks for GUC recovery_target_xid To: David Steele Cc: Fujii Masao , Michael Paquier , Pg Hackers Content-Type: multipart/alternative; boundary="000000000000924e83064d39d8ca" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000924e83064d39d8ca Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for the information, I think it's already covered by the previous commit. Regards. David Steele , 17 Mar 2026 Sal, 15:36 tarihinde =C5= =9Funu yazd=C4=B1: > Hi, > > On 3/16/26 14:44, H=C3=BCseyin Demir wrote: > > > > David Steele , 6 Mar 2026 Cum, 16:01 tarihinde > =C5=9Funu yazd=C4=B1: > >> > >> On 3/6/26 14:05, Fujii Masao wrote: > >>> On Fri, Mar 6, 2026 at 3:15=E2=80=AFPM Michael Paquier > wrote: > >>>> > >>>> On Fri, Mar 06, 2026 at 12:04:00AM +0900, Fujii Masao wrote: > >>>>> Thanks for the patch! It looks good to me. Barring any objections, = I > >>>>> will commit it. > >>>> > >>>> Thanks. > >>> > >>> I've pushed the patch. Thanks! > >> > >> Thank you and great idea on ALTER SYSTEM. I've been hesitant to add mo= re > >> tests in this area because they are so expensive but now I feel much > >> better about it. But that's the last for this CF since there is more > >> important stuff to be done. > >> > >> Regards, > >> -David > > > > I tried to create tests with the ALTER SYSTEM approach to validate the > GUC. > > > > You can review it if it's the correct approach or not. We can create a > > new CF record if required for the patch. > > I modified the tests in the patch to use ALTER SYSTEM and that was > committed at [1]. > > One of the tests (bogus) you have added here is a duplicate but the > other one (upper bound) could be added. > > You appear to be working against an old version of the master branch so > I would recommend rebasing and then add your upper bound test following > the test pattern we have already established. > > I personally don't think the upper bound test adds a lot of value here > since it is handled by strtou64() just like the bogus test so it will > not extend coverage, but I'm fine with it if others are. > > Regards, > -David > > [1] > > https://git.postgresql.org/pg/commitdiff/bffd7130e942e2bd45153ab09e5fab70= e74ece58 > . > --000000000000924e83064d39d8ca Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for the information, I think it's already = covered by the previous commit.=C2=A0

Regards.



<= div dir=3D"ltr" class=3D"gmail_attr">David Steele <david@pgbackrest.org>, 17 Mar 2026 Sal, 15:36 tar= ihinde =C5=9Funu yazd=C4=B1:
Hi,

On 3/16/26 14:44, H=C3=BCseyin Demir wrote:
>
> David Steele <david@pgbackrest.org>, 6 Mar 2026 Cum, 16:01 tarihinde =C5=9Fun= u yazd=C4=B1:
>>
>> On 3/6/26 14:05, Fujii Masao wrote:
>>> On Fri, Mar 6, 2026 at 3:15=E2=80=AFPM Michael Paquier <michael@paquier.xyz> wrote:
>>>>
>>>> On Fri, Mar 06, 2026 at 12:04:00AM +0900, Fujii Masao wrot= e:
>>>>> Thanks for the patch! It looks good to me. Barring any= objections, I
>>>>> will commit it.
>>>>
>>>> Thanks.
>>>
>>> I've pushed the patch. Thanks!
>>
>> Thank you and great idea on ALTER SYSTEM. I've been hesitant t= o add more
>> tests in this area because they are so expensive but now I feel mu= ch
>> better about it. But that's the last for this CF since there i= s more
>> important stuff to be done.
>>
>> Regards,
>> -David
>
> I tried to create tests with the ALTER SYSTEM approach to validate the= GUC.
>
> You can review it if it's the correct approach or not. We can crea= te a
> new CF record if required for the patch.

I modified the tests in the patch to use ALTER SYSTEM and that was
committed at [1].

One of the tests (bogus) you have added here is a duplicate but the
other one (upper bound) could be added.

You appear to be working against an old version of the master branch so I would recommend rebasing and then add your upper bound test following the test pattern we have already established.

I personally don't think the upper bound test adds a lot of value here =
since it is handled by strtou64() just like the bogus test so it will
not extend coverage, but I'm fine with it if others are.

Regards,
-David

[1]
https://git.postgre= sql.org/pg/commitdiff/bffd7130e942e2bd45153ab09e5fab70e74ece58.
--000000000000924e83064d39d8ca--