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 1wWpj0-002szk-2U for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Jun 2026 06:14:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wWpiz-005I2Z-1r for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Jun 2026 06:14:09 +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 1wWpiz-005I2R-0w for pgsql-hackers@lists.postgresql.org; Tue, 09 Jun 2026 06:14:09 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wWpix-000000026Lr-11GI for pgsql-hackers@postgresql.org; Tue, 09 Jun 2026 06:14:09 +0000 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-bec429c2bb1so744903966b.1 for ; Mon, 08 Jun 2026 23:14:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1780985646; cv=none; d=google.com; s=arc-20240605; b=ay96uLw/xzpaBW4mXv6IYakkiyrBD4J/K8C+etb0M9sBpqR2gwcytvDoAOtTJjOuKS 45dCSIvgdVVYTB6kX6Q3CV8JfCCQMGYmKwzv/FBdV4dg+tHaLHKQzOOCNojz49kqC0nq n5pqnuQIUSMc3uzq/3dXrPcTNXCaVWIRp+lF97jEYDOCyiORtJKiCjQyK3xZku3DwgyM l74nMcd2P34ZmIJdMLl7ediv4tEK9HkD6bMuC7HZRID7CPK/ny8XupJOOIWMIW2W4mck 9n+DhQrGslXvZ1nf6GRqZZU2OLMOJxuVQpbDyw+l7+TxFBrGaly8bey4bV0wLgvIp79o QbkQ== 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=awjPxvexEpLKFU4uxl+efTjxXF+L+pmuHSruFZQuLIc=; fh=MzlZhEwhuY58ieXIRddPZXgsxqek4X5h7c6AwfkUlYc=; b=iV7TOMOru91vkLmmLtrWZZ5Xw3dyEEyvhElPcGgD7Nt6AD7Bi5Kp/QrmH1s/3AYThL f9StxXkxG529gYRBp7RgMUZJl2i9HgpnppV+gH6MtQubsspB6NT3ZOf0ZXygk7lOh498 SQqsuXP5Z9UW/6at4ZLWmmA9T3w7ZKmUOTZ7sZfzpyyAdywtNIl1KJtG2o5xume+O+m6 a8hpVDhRwPpUP8iisZ/xJYECunbvsJ+YXtN8D6fXXF/DmhgYiHftaRS9IrfSSGxvZfpw t+dQ+A/i7vtc4UszALrQOlrxluamJbpJPLFYOfZKZ/LNzsaGfSxZC1mDRJN/0I0dPwDI E9PQ==; 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=1780985646; x=1781590446; 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=awjPxvexEpLKFU4uxl+efTjxXF+L+pmuHSruFZQuLIc=; b=YU92aNduInSzYEEF5cqRPDLgrsqDJm6it9jjzygctUNW6v8crkgHDwlY5ThQ+cGzmk ZnigPKfMiSVEZsZo2tfHOnTS4tFOxjdT6X07vdiKcORodizv4josF9egItsA3JizWE4V IK4zkGetkz1seDY/KLfA9UHZCxKA1kyxxh+eOoa+1OsaXWh7KvNqOPxFD4dI/quTujmz 9knrvF0znWitgade3lBsDzy2D1s8vLfnTnHVfVF8VGGJxjKScUXuSyj2lsYfASXU1HX6 MSQ5WoWbajg0XJC4K/s5tqeqz46kINgOm6AK/MKl6raQrOgZqfBS6n8ahgd1t168z9/h UBBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780985646; x=1781590446; 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=awjPxvexEpLKFU4uxl+efTjxXF+L+pmuHSruFZQuLIc=; b=eq/uKmx/VFDeMO8hK01+Is608SOEOm0QBqLPOK5/V0JocvxeC5pNbsvHInL+Y5vJce xdgEli0S3t3FpP2+Age+K8x3xjSDuC8oDYSmfto6DoUzbl8ad/NubdT/TZmijXCCYwDr o59GsPdmHXSCGCo/3VCO74me+fwFERV7clfF2hwqBiPpQ7fWD1SprmPoXdruYPHqNuKS KfMHpKDNYSnr2Og0O3Bj5lSULdLU+5qs2pgyF/0c1kV3BJlR5/ydhiwFXraQ4cpj1zmb I9apHD8HSRiV7qOpy/93Uu/I7hbzdBqx7SVJSdvuVn1WC+JCm/DLZ6RgvRjbUYxyhMVJ Z2aw== X-Forwarded-Encrypted: i=1; AFNElJ+atgOmFs3qHCCWkGhnYnPbEPQWh/U7Qe81dUY9uY9hIITbKdAfZqL8U50OdBiQxPDKqd+YT4Glf8/5bKzB@postgresql.org X-Gm-Message-State: AOJu0YxeRUOl3UJmPn2RopfBw5hoIExR2CkJT4M5Lc8qwdi4zBsSJo7s 4q9HETUzlfzBrgdpMcd1ws5TwvxGUWEn6BSQ6OdW3hhQdjC5gQfrs+pYo6iGBnlnjKe7WfxNF6r eeFIuo5p2/N9wihh7w/d+MTBT5loVAJE= X-Gm-Gg: Acq92OEgFzPywoimWVgpL9rNBwezQ5N2Gvaq0M5pY+1EVvECoxIoNqT0lfyV6QrL1d4 pW8F/L50anEKMThPTsQAVboBEBIYuFGf3rk2hnyXsi+uT2uqxLkaP0JWa+BW6g0MLAUaI5cm8i3 D35IWAEvO3eGlPxvlcI5+uF2/KD/IJf3TwXNa+dB9gVPVFvdSERLACcdc5s3dEUPy51TT+wADKq nY+izVTU1DBOkXHQJ5CYX3hf6JYY/CdHjKQQSxdsD8YYMgYoPaMfKgsvah8FIj/j5SXn8XUZSdG EtblN8gktvhxUdzzTno72b1zlwC4kFHIsuf/JJuXjKdsZUNkgJQHK7F23bu9MicXW0aY1BQPTl1 eZO5D9fg0iLc0pHs= X-Received: by 2002:a17:907:8686:b0:bef:89d9:9f08 with SMTP id a640c23a62f3a-bf370b5fd4fmr889065766b.19.1780985646129; Mon, 08 Jun 2026 23:14:06 -0700 (PDT) MIME-Version: 1.0 References: <7daef094-abf3-4672-bc23-3df4763b16a3@gmail.com> In-Reply-To: From: Xuneng Zhou Date: Tue, 9 Jun 2026 14:13:54 +0800 X-Gm-Features: AVVi8Cc52O0s86RTiv5HpVb4ZfBRezZUdyBGadLAjD3q2vz0il4sJzIL_R3Scdo Message-ID: Subject: Re: t/035_standby_logical_decoding.pl might fail on attempt to read wrong timeline To: Bertrand Drouvot , "Hayato Kuroda (Fujitsu)" Cc: 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 Tue, Jun 9, 2026 at 1:57=E2=80=AFPM Bertrand Drouvot wrote: > > Hi Hayato-san, > > On Tue, Jun 09, 2026 at 04:04:20AM +0000, Hayato Kuroda (Fujitsu) wrote: > > Dear Bertrand, Xuneng, > > > > Thanks for sharing the reproducer and opinion. I could now understand. > > > > While seeing, I felt the same issue can happen even for the streaming c= ase. > > Please see attached reproducer and possible fix. Good catch! > I just had a quick look and I feel that's probably an issue too (good fin= d!). > I think that your fix should use GetWALInsertionTimeLineIfSet() though (b= ut I > only did a quick scan on your patch). > > > Can you also include that point? Or this thread discusses only for the = logical case? > > If separated, I can take initiative for the streaming part, after the l= ogical decoding > > case. > > I would says it's probably better to keep this thread focusing on Alexand= er's issue > (logical decoding). Once this thread is fixed, then I'd suggest to open a= dedicated > thread for the streaming one (mentioning this thread and probably trying = to mimic > its fix as close as possible). > +1 for starting a dedicated thread. Please CC me in that thread in case I miss it. --=20 Regards, Xuneng Zhou HighGo Software Co., Ltd.