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 1wE0dJ-003ZVK-1q for pgsql-hackers@arkaria.postgresql.org; Sat, 18 Apr 2026 08:02:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wE0dI-00Cb30-0u for pgsql-hackers@arkaria.postgresql.org; Sat, 18 Apr 2026 08:02:28 +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 1wE0dH-00Cb2s-3C for pgsql-hackers@lists.postgresql.org; Sat, 18 Apr 2026 08:02:27 +0000 Received: from mail-oo1-xc31.google.com ([2607:f8b0:4864:20::c31]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wE0dE-00000001b2A-2gCK for pgsql-hackers@lists.postgresql.org; Sat, 18 Apr 2026 08:02:25 +0000 Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-68be75dc734so423051eaf.1 for ; Sat, 18 Apr 2026 01:02:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1776499344; cv=none; d=google.com; s=arc-20240605; b=XMd8Yrf1UOzeyQLqEkDZBNjLCdQP2tuaLM7OO90G3+b0bVgZ+5/1at/zEY3cKI4lFJ ykxqGncQw4ErR19Vvorl8WrIoXmeeULow8E+5YgcwMw8vGWTsysDReqUI7XE4hno48lW 0MSfFtZwrKfnj7tXEfN8eY+/VLgWzA4KtTDPiMBIp9jXmF0nCA7hY8GK06IqsCCKkY+I ch6ruM2KsYpuzq20UVSNI9/0YWfP7k96Z6hBKkwOeJLyWHd1TiqK5QOYF5OLoowm+2e5 M1Po13q283uHG+qLi3DuN6mBS/ExDVAiHhlv2Evl3n6H7vooJQ9OSpNln7djHgbciiya OUYw== 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=WahwOg3FVybbZUdtdf9UPa7Mp7qJPnMOva/pw0Gegmg=; fh=HIZV9Ckfw7em6TMV2zsB6J1Cf1YqBd0NEoJPKg7Qq7Y=; b=DoMp7nzSAXAbeWcVubJIJYnVT7iPq8YWDH6sb3CAxI9OVz+6MgfjB17sJ+LhtvgozY 0BeG3iSUEp7u4OM3nITkciMpXsVBma4Y9pLSoSkATF7+AaLlcqFRuk0JYYQg5W7VtkqR L7FSE1k6juQOvzKwzdA/2XQzUnq6Td51i7TF7432EhKZ502mNgr+olO8KZc966HE7hjd 13CL7FVk1KNX28GPhDEIBqnon1tCpQNsxMcOcAsUMYYP+PE0fIo0FGngc1RkJ6zGdbJU EU4uhGWVbvNUy8e5bNhStMO57AqWG7ByxKSORFt0PEgWS7LFwJeJrfs7a/1WrM2eqchP 93ug==; 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=1776499344; x=1777104144; darn=lists.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=WahwOg3FVybbZUdtdf9UPa7Mp7qJPnMOva/pw0Gegmg=; b=Q6trm42J5IHfB4135JFLSwgQY3useFmpFDQIb9Ab2y3pER5fl0H9V43uRVPUktrgEw 8bq/jTVb4t58vLbgXKtohVSqb9G0AOjtb+e1s4yYxq1y0+AoSoFLXEmN6GxdcXMqTyC6 BjMy28BTN4Jfz3fXP5l7eMgcXbqJQn7Vx/hkBI+pQQJ3h1Tl0FN3ABBkvewaMEdacF5T NXCIHxfYWYFu7pnro6L5IWgLYO34kcL5LqopmkkcUkrgIpIcMC6beTmjRuR2vzgwL8iD KIvQ9/l87AgJX5gWbjpOSK4gL2BbX+DJpJAIteWS6Bin+qoUB/ysH7kXpU2nzt5jI4ZN SViw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776499344; x=1777104144; 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=WahwOg3FVybbZUdtdf9UPa7Mp7qJPnMOva/pw0Gegmg=; b=Qsn38WhttD8vPEsd+gC/eNngALnWKVXbZTN1Gf+kINuvRtToG2TO8eT7bXYSEX1REK ukL0KC1kRb5dPCKF/pamDPo3/mpvkBV35ONcOZkng8qQADCROtR4Ksv17oE9PETm9F3l kmd6xxJsJ/9yTclpHHoAVUOVp+ManJMyqXV2zKP9tSigeupbUuSY6w7JH8JnF2DlyTxk i4IEuZQY9E+3ljIRB7/8JCNDBxlcCxhiSyNDkB1U73cHC6r5uc3W6sP7VPNd5V1bsVE7 G8WpKhP8INZz/fn/aqJjX+uleaP4a5fKejAV/B4KJgYR8o7vsdbiwO605ISaifqNef/h z8Uw== X-Forwarded-Encrypted: i=1; AFNElJ/AtSTRlnY+YCDG45hdr0mqTwGmphKeuRWFFaPqnI9jHr7I2ML5BqI6J7tUfiClhPOuR+WgUL/3rlNFHmXW@lists.postgresql.org X-Gm-Message-State: AOJu0YzZIzKz5oMe9wfuZAWSxU8v+iig0L77a6VK1Z7aOuKRt2lonZP1 xBN6GhDBAmjKd1NYPcx88tdZ4pZCo4h3GSKf4BaE+PwuSUOe8zDJebjcOB8CSMzXLyQNp4CPkk2 KvXXX7LvOSVH479kTZV9C4v26JY3b2lc= X-Gm-Gg: AeBDieuFyJ+0es3m1l485d/vV7pqxiMelGPywq8M9YPglNUL5FskuxRcOUd/4PaeruE f0gIjTrC+rr+doAFAXqE8z9tH4UsDSqfCUTpCXvwSgiFdM0bQVp644KfmOMSJgPzN5K1ynQBGXT k8LDAE45O91b25UNGEgqJIOyOhpedEfnykN0wSrEX1HlijCb6rSOmyZeSmf8YgjiRiQOQ+2bPbV tT/B/HAhbo0WfZIBqongjAUNFeK5rBrfn9CGqSVG6AMnizzHCjQGIspuSeuYNj3ynF6VmL0H3Kp J48MZq+RcNjh934/eQGo90uKqP1IGOiL61AXCIJK32nHwqcYbhpcipzOtJ5saTvJCRdIBbFXKU2 /nLUmtxfnYr8KExSjX+LPW6Sc/xi2JhwLxyEioIp50hf1nFex2J2sYMkhTgAr X-Received: by 2002:a4a:ee0e:0:b0:685:9910:eb89 with SMTP id 006d021491bc7-69462f54c42mr3305294eaf.58.1776499344467; Sat, 18 Apr 2026 01:02:24 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Alexander Korotkov Date: Sat, 18 Apr 2026 11:02:12 +0300 X-Gm-Features: AQROBzDuf74rPzj0I-dod3Y0EET41MiLrYg1zQbwO6DpN3gta2rowW-ci3B_G_E Message-ID: Subject: Re: test: avoid redundant standby catchup in 049_wait_for_lsn To: Michael Paquier Cc: Xuneng Zhou , pgsql-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! On Sat, Apr 18, 2026 at 12:47=E2=80=AFAM Michael Paquier wrote: > > 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 your observation. The intention of this test is to check explicit calls to WAIT FOR LSN. Yes, wait_for_catchup() now also internally calls WAIT FOR LSN. But checking wait_for_catchup() is not intention of this test, it's used in awfully a lot of other places. ------ Regards, Alexander Korotkov Supabase