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 1wXrtE-003WiA-0A for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Jun 2026 02:45:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wXrtC-000KOl-1j for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Jun 2026 02:44:58 +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 1wXrtB-000KO6-2Y for pgsql-hackers@lists.postgresql.org; Fri, 12 Jun 2026 02:44:58 +0000 Received: from fout-a4-smtp.messagingengine.com ([103.168.172.147]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wXrt8-00000002H5y-3Y8A for pgsql-hackers@postgresql.org; Fri, 12 Jun 2026 02:44:56 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id 613C1EC0109; Thu, 11 Jun 2026 22:44:53 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Thu, 11 Jun 2026 22:44:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1781232293; x=1781318693; bh=41E9vBAXI4 sWnlUTM/AzQZD2kdzil1xmjHvi/Eb0Lps=; b=Q1YKJxUI8mcGAu5SYuQCVD+CEk uVp+awRmSqL3sF729w5iTSVhqA+6HIBnBYCtko6bwwP1cwlD+S5hxWNJhtUUs0sI K/wK+8iXtrF/Zn38FccbF4T9h8+5lD/QK1I+pXD03qwoCee34nM6h/bpco7fVBsN F+oduSBdpwiVMY5TPWZCJOdiD3RjfOa/bOc9q0JHC6XE2Ex2YfQWSe6N82QZdpp9 VFZOgq1YF/rSfKEtiFWQLhp4wL+mShZyLkJ2oi4oqUYtVfEMEsCNfzOl51FEohTH TXC93oF0b3Iez7zgMUbn5aHyXxtj6Lp2yutSZ63r1nNnKPYX3pE8EV4OE3Eg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1781232293; x=1781318693; bh=41E9vBAXI4sWnlUTM/AzQZD2kdzil1xmjHv i/Eb0Lps=; b=PPWpKCdAbVa996QD5WskBTtzO0t++8uJjgosF44vs6DR4LSl479 mrpO9k32bgUFw9X5Oc1eMEZVvOFWAjVIT6zToVKgIYXbRiNhbjBcPeeEzq8MX9fq h8cx6vDRAyMjcHjEza0pZg5WT3OIuNlkdQLMcwV5vgtcvtGxV2yiJ/TbWwXqQcFP ql18/IHdUIoKHmNkkrT5ytQDJ1d4x9mTXMRjtgW/+czPGksgz5qMA2D39p+3zUbB orM9pCKQLFLbvtTIh9te+RF9g/3Gmlq0MwtTPOoM7Nkeb+OFiLdXYhzbT3EgJbEU w/QyLFDlBMf0Pf7TD1zNlKI5fvAUzmkrBKg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTECfLoALSc3hg0TtL44Qt6znTPWCLOKKl/bUU+FvNAUgt9DeIlDSYoYpcWVFbWtAB SP9MoRgQdz0vUkF8LmlsVXEvzT3eRKJsA5EjUFGkPbflsxz4Rvbrd9kf4Tg7utZ91LUsp4 Hy8ojk29UujGiPCHPHyreqxtXNv9qI+wgxY5p3Wzq1mxax/la8vxKeHuW9Bfc+5hSpea2g 5xQa1hrBm/k9AzncY2Dt5X+1jHl/CsvPTYIif4O8oItbC/c6lTsV944A5oV8Uk4T0PO/+e 6nNua7q+FgIfDPaeNWPEAS777/gLwaqsiwvVLhwRFpqdXX+KXhLEvb+Epzrf7pL896vSV3 isExjXNFynV8cANn+JGhLzQ6rpdMARg8BVIfJtlPNohCsCzUK5DXUlH5Cjxi2CQNp759mz J8BPp3HmtVr99Yy0/dEKm3S+fw9vh172Bp8O/tz8DrGkOyS1fLYOTkmT0/egfzXLRZaFI2 12dMlgimB5or364hOvO0AP8tHqtdtx8vMWxoFTLwJxrPNt3xkDGhTxrfwuvB2Utrj2v2+m IBQUhFcoDH3e9o7wZnS9vR3TmdIC11xGIG8SkkYMlMjxYKG6xf7fiob8RJTAEyUMKDLoXw BB/jIRaz0UkrHbzRSw3yX3pl/qh3P3HxwEVcai0uvbotyk6cE7DtPNrGBwgw X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 11 Jun 2026 22:44:51 -0400 (EDT) Date: Fri, 12 Jun 2026 11:44:47 +0900 From: Michael Paquier To: Xuneng Zhou Cc: Bertrand Drouvot , "Hayato Kuroda (Fujitsu)" , Alexander Lakhin , pgsql-hackers Subject: Re: t/035_standby_logical_decoding.pl might fail on attempt to read wrong timeline Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="siFkxeHz0tnCZ8sK" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --siFkxeHz0tnCZ8sK Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > 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. :) 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. -- Michael --siFkxeHz0tnCZ8sK Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmorcp8ACgkQnvQgOdby QH0lVA//QeTT7dj1EV56oL7GMyzY1EI7ip5+0tTBvZCqZQtaZFDm4YSyOI0v77fu YboKOtTm2ijlZT5umPIdBlCI4JjRcB1RhBRxOmqnRnilJZvkBxYXoXujt5n0lzqN K1Ud+Z9GIGM8z8XzpkTBWuw0yO0aD7VXXyhNB59Mi2ymwS11IF976coNNvZXvXPf vQn9Pw71XV5LbzmQeCtO40lJwT1SsqPCcxAQedWUJadhHDK+QIGP8nGdpyjYwtEx jy/Nyv8oiv0sCbU7YsDn+i2h8raYT5doV3qfWGXVUkFchY5eWFKCk0s4+1qyaBU4 r/pprb/S45UmcgiKY36dv54qRwEzz1L3lVZ6UYWuwLjiwuEfudBYv57Z0crg/wl+ aljASWhAl9Oh5YHap/vZO1MtRtQT8CFPsNtzAS+jN0Zc1KiAfK/LvNP2Gqs7Igzq b/Lf2p1nCkDL8KumM32j2cncb72K680Lh7B1Kb27RJeRxXq2LIzpiDSZrhMw+DtT 34tYg8lRz6FYQQS5V3OJ6/Z4GxaWg9j6ZSAG/7vvZvBp3N+GCiMh4XHrDn1lwGcV YBKzVaNSHrdFfmpFjQsDBMT5hdWLwIJH91ILaLMZzMz3O/PdltX2gpm1sT3wOz8v Ct3niUjA+37938hD+46dJPSqzH2ekHLTAE1cQbjvXdleBcikOxU= =xm3m -----END PGP SIGNATURE----- --siFkxeHz0tnCZ8sK--