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 1wDxA8-003WRM-2Z for pgsql-hackers@arkaria.postgresql.org; Sat, 18 Apr 2026 04:20:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wDxA7-00C3Et-3C for pgsql-hackers@arkaria.postgresql.org; Sat, 18 Apr 2026 04:20:07 +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 1wDxA7-00C3Ek-1Z for pgsql-hackers@lists.postgresql.org; Sat, 18 Apr 2026 04:20:07 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wDxA4-00000001Zcq-44Uk for pgsql-hackers@lists.postgresql.org; Sat, 18 Apr 2026 04:20:06 +0000 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-6739248020bso1870352a12.3 for ; Fri, 17 Apr 2026 21:20:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1776486003; cv=none; d=google.com; s=arc-20240605; b=SHE5jdYGmTfKAQkLaTkPtCgaLSyaxyKxhLQBhp58ibtfaih76qFQaJ/eVbfTM3pMez vnxY6PwxraLCgC9Ze7Ydrm3J03ePVSNwHYMLjsnM6ntTMekqO5DWr0r5Ff8hasZueK0T HjtH3lGOn+4mol91K2mTX32T+btOFkbLuEoQzUjK331lEUi99BiSNixC2gUu/4f3qEBj nNIQ0Ij0/NwADCDYZjfcV04qggSN8FmiearmOgR2nENp2Sv+/iaGLkuafpMQMZ8aq/SO BCwt0/hJb0aAi+PuXebVCG/xKJViVAYB6GD9xc12+YtXxBSNcfcPMwhc9uusZrWLq61I ovOA== 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=bBk+HtDZsrWojW07ydPpoEVH14brvGBsoQ6GdgmnZ6I=; fh=MjPoYJ+UF7YDiYJFMAr7XT6ahTkAeLAV0v8DkA+P7NM=; b=dgrVq5Hrn1JpZudaa0lrgE5HxPV0X1LPhpK75BH6W3PSa5CjCVxTVxTFlpiIcL/9Wt lcBgn4beZ7xtUlRliFa5kQ4KqMhauVUZ9BZ3w0NZuCUS8xJHeh8y+o+qfbG9S7z2/Gs5 DIs88yT/U34CsWLFpghJa28xIE9BV0QbRaANnUX2vsbRre6bn4DtoxlMu8sKl4XG8ZpQ 02+jCachiEKvTp28gMV8AAYQf3ie21TNv5HYq2XSLfIxc+JwC8Ma3NHd5//C22g3fzFI MZkIjCPclkDGGuKf9THsMEW7NSHIoshNidjS9ZrfYUXEs+AAsFuCGkVw3Ht/thQtlroT CE8w==; darn=lists.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=20251104; t=1776486003; x=1777090803; darn=lists.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=bBk+HtDZsrWojW07ydPpoEVH14brvGBsoQ6GdgmnZ6I=; b=frj9rKOlGy60uF6tB4+H1mRPJ5Mx3RylgeiE0Cw8CYQACqdwFBYpARfsStMvhQwBd2 Pxs/gN7g1n3yUcSacaotArWiioVgu7PaZCP45+8cXMKNWhG+x7n0ZaYxOsjXadj22D/m rtJATDp0YWNpC4HnU7qXTNu7TB3I8YJJ9zVt/QXj9a7yCwzPqHNJJxDX8I/GkTiAU3iI 4mWz9gVB93t7VjSNj/s3ZGlQ+ssIpo0Eq7d8xi5V7TXSen6acgjXJRFUfmStlNEWK+HR livRx5PS+7RGdGRNUZhxVGu3V9BIEixsM04ZhNfpVHuxBemCnWXIs03IXtz5RQyv7Tum 9Zmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776486003; x=1777090803; 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=bBk+HtDZsrWojW07ydPpoEVH14brvGBsoQ6GdgmnZ6I=; b=fmw0tBvfINrbY9plth91/Hc0ANLA7ls6Hwz2pnYryGng/7v4UQwo5hofjtbnh5hBXS bPz6VmcXlHU8VcuGTN1vAysUD7Ay4d2IU+Xw9DOJF0muMNlG6LYjwR/lD0P1QRjlUHoN +hgPaKveZEBuIDSyOf8QdVFUHiyvHT8DGRbv8Y7j/bN505HOjCTbHQ7i4knyeQ2RX3Fm uCT7G7GXdeZAahZ9plvKF7+9jc/Nt02Sqyi02Q2/8qoDUJGxSosCjZwKBrFqpjmr8lvP CTVq+tLMJ9WqxhpHdLhJMam9/RcM9HktSNbOAzLNXPTuQRvbZ7AkQO1Dxj2is5nZFbMh ixVQ== X-Gm-Message-State: AOJu0Yx0UsWOI98mriY8OZmreBxQpHIUjYwPNgIpAB73KFFwiYqCouTZ byoVlk3OEYD4z0qhJgPJfM+4ewJA+VHxH9+HPWNZZtfdue3wL0/720+Sm+Cik5ZPl7YgRS+nP1k ldmCWPQlhqCw9hgA7YGdM1G78q3/Tx1U= X-Gm-Gg: AeBDietEFK+8Wl6ho0t3hBeVOpXai3A/BZyib3B2GozcjsvIJqwnOapOTa0BHc4x9A5 qnmaZ9PCFjc5V2ki4wQOYySgjo2wxnwbYV7M4ox2oXU6zpkCKWk5LNyWHXL1kwnpQ6d5Z5unJ8g z/LbJhuXuDLc11E42PKJytbf+vqKXM7n5Jq/Sd85NDwA4ZhMHhuqXewfn7noDvTibvYKkvkGa18 NRtx0W0C3H9M2a/ThQCNmxvYTWQYuikFIhF3YZxeyeyRbipKuZLXkEjv+hS3AqGjjv1F+rxcBLp uBfX833T84HbHxFdb1uguBrxNWrl5wEKH+8r6koSG5tDfpuTo1A/GupPSUg4a2H/Lq+Uw0nRyPC W1/F46ypajCtC3k/eyCKso/g4Z571 X-Received: by 2002:a05:6402:26d2:b0:672:641a:3692 with SMTP id 4fb4d7f45d1cf-672bfdc8c07mr2665274a12.13.1776486002912; Fri, 17 Apr 2026 21:20:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Xuneng Zhou Date: Sat, 18 Apr 2026 12:19:50 +0800 X-Gm-Features: AQROBzAA3Cga0ZxTe9PHnXpU3SB6tUsmmNldUSKM8AgTmsHiqOWTZ2pYM_499-I Message-ID: Subject: Re: test: avoid redundant standby catchup in 049_wait_for_lsn To: Michael Paquier Cc: pgsql-hackers , Alexander Korotkov Content-Type: multipart/alternative; boundary="00000000000026f0d3064fb461f2" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000026f0d3064fb461f2 Content-Type: text/plain; charset="UTF-8" Hi Michael, On Fri, Apr 17, 2026 at 08:25:35PM +0800, Xuneng Zhou wrote: > > The change preserves the same coverage while removing one redundant > > replay catch-up on the delayed standby. It appears to reduce the test > > runtime by about 7 seconds, though I have looked into why much of the > > improvement comes from this change alone. > > Alexander may think differently and remove that, but I disagree. The > test is clearly written so as we want two wait checks to happen, for > for CREATE FUNCTION, and one for CREATE PROCEDURE. Removing the first > check to keep only the second one removes its meaning. In short, I > see nothing wrong to deal with here. > Thank you for the review. I agree that the two wait checks serve distinct purposes and are not redundant. The main motivation for this patch was efficiency. In my testing, the new test added approximately 7 seconds to the runtime, while the creation of the procedure and function completed quickly. I suspect the latency stems from the wait-for-catch-up step. When I removed it, the test runtime dropped by about 7 seconds.I haven't yet investigated why the wait is so costly in this case. I should probably look into that before proposing this change. Best, Xuneng > --00000000000026f0d3064fb461f2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi = Michael,


On Fri, Apr 17, 2026 at 08:25:35PM +0800, Xuneng Zhou wrote:
> The change preserves the same coverage while removing one redundant > replay catch-up on the delayed standby. It appears to reduce the test<= br> > runtime by about 7 seconds, though I have looked into why much of the<= br> > improvement comes from this change alone.

Alexander may think differently and remove that, but I disagree.=C2=A0 The<= br> test is clearly written so as we want two wait checks to happen, for
for CREATE FUNCTION, and one for CREATE PROCEDURE.=C2=A0 Removing the first=
check to keep only the second one removes its meaning.=C2=A0 In short, I see nothing wrong to deal with here.

Thank you for the r= eview. I agree that the two wait checks serve distinct purposes and are not= redundant. The main motivation for this patch was efficiency. In my testin= g, the new test added approximately 7 seconds to the runtime, while the cre= ation of the procedure and function completed quickly. I suspect the latenc= y stems from the wait-for-catch-up step. When I removed it, the test runtim= e dropped by about 7 seconds.I haven't yet investigated why the wait is= so costly in this case. I should probably look into that before proposing = this change.

Best,
Xuneng
<= div dir=3D"auto">



--00000000000026f0d3064fb461f2--