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 1wXvNk-003YzJ-2K for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Jun 2026 06:28:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wXvNh-0018Cv-0l for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Jun 2026 06:28:41 +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 1wXvNg-0018Cm-2l for pgsql-hackers@lists.postgresql.org; Fri, 12 Jun 2026 06:28:40 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wXvNd-00000002gBJ-0HJy for pgsql-hackers@postgresql.org; Fri, 12 Jun 2026 06:28:38 +0000 Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-bec449d0af2so76681566b.2 for ; Thu, 11 Jun 2026 23:28:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1781245716; cv=none; d=google.com; s=arc-20240605; b=GjwdhWRckcVKyrAJXNuB1gm9djpL5Qx157ptgRjU3QpK42oBrxnh6aN+xg0vqteJKP belibzmxNPV5rCyraTyt57A9iMcqBfmKt7PZ/F6W5piZd9mI2ydwlf3mZ8MkLV4vaCg0 lY61xm+eNqI4rApYcjkLS2/dp2SXf0HdsnMTHLEnde7XFji/hGnjczqEiLGxwK7fjAsn 6wL9TaKsh4Kkjq/aUY3wUrNfN+YQhsTqDO0f1BExyuKvdKimUkmNwTBtjRB0rupaHrB0 3/MT4nhzNIcPHrYKqHV2lRL32xU6f4VuR6UyID9hUEDfjEQow4Z/Yq+ruUquarJF+n9E X0iQ== 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=Gt7nqMcxiZ5yiPLtSJ0gwX3ofCEgEkPm+YLNVXMeZgE=; fh=HfEJ3uTlNyOjWgn3C0mh8R9Yn7twTRgtkXrVoBq8Ops=; b=ZsoRwhXDGti/WLE3jcli+Y2NliEpeOVeVfsCcsF2zNIy60163XnyOYT6eZh7+hIJvh M8WPSuJyIEZMT9CaEByvcYl3s+zEa9kpxSyKeSG8pY7ST8rM4ozVsnlk02sujr4lM0RB UkEB5UIfRPWyJMbeVv9cBHtp/5XetQKyG+nOz+GlfIKj222oFuJzGLryzRWFSIJLuKtZ QBi8mlJUi/HMn5VZwpE0pbmoFSMUH7Y1ABXXJnH30md5uLS58YF4WGl2QD/lihVQQtEA UrejgoAKVFE/jTNJ8OlnW2NCc4huk7pZSfb7mQLLwjriZl7tRXsBoRwyd6ntMppTrBdm X5ig==; 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=20251104; t=1781245716; x=1781850516; 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=Gt7nqMcxiZ5yiPLtSJ0gwX3ofCEgEkPm+YLNVXMeZgE=; b=TK+JGKuNQpsKDJsi8OGmYz1IzCCcMQo+i/y8dbL7Ed6XIM6FpmqWlBSexWu4uPO0fK JVzMA3X/vp0Rozsg7eF1hib/+4PktwT2Q4rSSBUbry9L+eJHXxaQtD0KkeM19A8NA2Ak EcL5y/cwCyXWjF7teUric8PC6RHU3OedbeAOt7UPtLYo/stJJI9KO7rBRywC57oLZRxG Jpg59cS/Ppp/9xyYlsyXKpixUb3QvFrMX31CSaKd5/yKC6ag4MPI8R1N1r3/wnup6eK5 pZ9g2EtPeyFPUiEQAMtYkwDDTdcaEngaS5eGdOX6HRDn4ypxFTopYBaJtd3SZZZGT4eX Eg1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781245716; x=1781850516; 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=Gt7nqMcxiZ5yiPLtSJ0gwX3ofCEgEkPm+YLNVXMeZgE=; b=VbdLW3roV6VHvS6FhxbIgKa4n42ZoKhObRBQbZRg+C8Zuzd7Vf+wqr9JiHREEhzs1K R7z2m04aUc1hMbqnbFbR7+I3I3dHupnqPmKu2Bq/hYie4cTsbxWOjBb0ZIYpKJib9X3X oXzywycGsKWKhm3ndS/pi6v6HOUqQjoztJLAuJ80tv1Ddghl/8OPq9sVbvh9LMaSFuRM UdHeHHjeJiljpJ2lgiXxQNcOJSNVYnoQbiZQh6S3XzrkimD4K8p8j1ShJEtG1Ltse1II FxxZYa9nxHTpxayw5dhSsnu8QHfuqmliuAVxqKcGISaYXab1KTwELDZqyPS0A73M8Vgb ByFw== X-Forwarded-Encrypted: i=1; AFNElJ/5oMmTujO3SIapSOkd6USh60U2rvR1XKeMMpw1S7lhndVAezN0zP65x7IqsIAIPatTYpVR0mna7eQ412Rb@postgresql.org X-Gm-Message-State: AOJu0YwUFVoXKKamuAhqDAR+WyEZVXo8c/r/tDO92cMIr7FqCnG8D6/r S/RWGxN8t78OHFcm/noh8ozAtjvnfb0ymJmQbgC56TldE3/Xp6P9peR046jfYW0aFqpElX9EwvZ kMAhuO9F/xkkv1UEn+ULd37O7gX7Zvdg= X-Gm-Gg: Acq92OF5Qv9BtWDtRKdoKBg69APJXvIOk5dQ2EmimMSlsyD5U0otQrtfRwgQRMgbYPv xy1gcNfiB8z9VB4mkrmC7p2L0u+/iKCCMGRiMj0FWbo683/2b2WLOwygm2hVbAErLpsom0bUPYM X+/5X6fw3uSj2kg/EIsHEUe6/xUZm3LYVymG378cSfyGLRfElXj3zZCiUJR2kyRcI1WF2Vrk/ly Dv3+EQH1Iv2XvO6lnyv/8tXQoQ0Lf/ykqYfaD6sck/+39bS0LXRtpZPd3NFsft1l07WFVyT75Of m1xWBGYcQMauB2nq5ehOj9rioRtr/fiWLje7lY9Od9+OD5/6StdgjXUm+gtms9ZbJI1KnVYRR1j wpV4q X-Received: by 2002:a17:907:9404:b0:bec:894d:dd45 with SMTP id a640c23a62f3a-bfe2a31b6bamr55298866b.38.1781245715622; Thu, 11 Jun 2026 23:28:35 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Xuneng Zhou Date: Fri, 12 Jun 2026 14:28:23 +0800 X-Gm-Features: AVVi8CdRTEqMS-yskzx8KwmW2AwJMRJcTphPH11_WuEb-uruAWTIzJMUv0b3kqU Message-ID: Subject: Re: t/035_standby_logical_decoding.pl might fail on attempt to read wrong timeline To: Michael Paquier Cc: Bertrand Drouvot , "Hayato Kuroda (Fujitsu)" , Alexander Lakhin , 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 On Fri, Jun 12, 2026 at 10:44=E2=80=AFAM Michael Paquier wrote: > > On Fri, Jun 12, 2026 at 08:57:05AM +0800, Xuneng Zhou wrote: > > On Thu, Jun 11, 2026 at 9:15=E2=80=AFAM Michael Paquier wrote: > >> read_local_xlog_page_guts() does not only impact SQL-callable logirep > >> functions, even it is the spot that should be hit most of the time > >> (again, the RecoveryInProgress() vs promotion window is super narrow). > >> At quick glance, things are: > >> - walinspect. > >> - Slot advance. > >> - Slot creation (?), but it feels even narrower. > > > > Yeah, it is used for two-phase commit as well. The usage of it is > > broader than I observed before. Repack worker also make use of it. > > Repack workers cannot work on standbys, and for 2PC files we have the > guarantee of a file on disk if the WAL is gone, so they should be > basically irrelevant here. That's why I did not mention them. :) Thanks for the clarification. > Everything's now done. I was pondering about v14 and v15 for a bit > for the second patch regarding pg_walinspect (or slot operations), but > I could not get excited about these branches. pg_walinspect is less > used, and slots have much more uses on standbys since v16~, so > expanding that further down feels meh. Making sense to me. This looks like a hard-to-hit issue on HEAD. The likelihood of encountering it and the severity of damage caused by it in those branches are expected to be even smaller. --=20 Regards, Xuneng Zhou HighGo Software Co., Ltd.