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 1wdoBH-004Mce-00 for pgsql-hackers@arkaria.postgresql.org; Sun, 28 Jun 2026 12:00:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wdoBE-00GROM-28 for pgsql-hackers@arkaria.postgresql.org; Sun, 28 Jun 2026 12:00:08 +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 1wdoBE-00GROD-1E for pgsql-hackers@lists.postgresql.org; Sun, 28 Jun 2026 12:00:08 +0000 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wdoBC-00000000bRZ-1XiT for pgsql-hackers@postgresql.org; Sun, 28 Jun 2026 12:00:07 +0000 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-49395888c7bso13267205e9.0 for ; Sun, 28 Jun 2026 05:00:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782648003; x=1783252803; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=iKIR4E9zJ9ObCaE8Gc6N28Iq/Z0cZWQiLDlKy07gAVE=; b=fpBN8ofX8YZlLpXSxL2nJYzyckYW5TIoXSmAT7prYeh8ARPLZ96tNfX5xPxlHePSm3 8fnTmJiUHHmvXPXTWy1TYw/1uDyrHJN06AYauqVohl6x8K77mblWHpUVnK8SjKUdQv1q Mr9aijbTSGQfz37m4eCDmcmK4tEOVkdkMcxhnTKGhiCVhDzjUiQI7g1lGsV+BE7l8Myz gYT8w+enZNX6Qn6r5l1vvp7w1nKCZBOManmM8VUEUu7VhlJxxjBJmc265IQfHVB/9Mm1 DF/Z7KApThbMP6Mm4DiIQhUHC1CG+oHSQOGJIBtNqVV7BkrqGTqHoB6FCjTXv24YzuRs B2gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782648003; x=1783252803; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iKIR4E9zJ9ObCaE8Gc6N28Iq/Z0cZWQiLDlKy07gAVE=; b=FY5zS3+0LbBQwbXwWAhsAICY6uJsIcUBILbrMlaZj3MGhek65S0vpj9Tjrj3FX4tlp phrtMaVpRp5BGM0/pL5I2CoPMuN5AWju27MeLfr1ocI0ZPtpRDfc7HY6bQdaONDJrtMx w6fYt0+ZPp/0JKzk96G2dosy9x5zP2TojvTkDlOOxjpFgu78H2qpXox1XnPYW3Yzm2Gz GcAypGuTI2jWE6Y0I3vcxWpcsnA4ouxXZ8I4UBfh+PXR6CXeMGE5pXWXAYwKinn4k6ch 5ZzHI8iS1M0uVKPpAIx60CaMOXSDNzmHZXbTI67pCI7pBGu+MHDKi+B4qyNVCnNmgvKQ AUng== X-Gm-Message-State: AOJu0YxqiEIYwtJlLB6sQF0f7Lu0OLssYwi2jvEm3NxeC6ZTi3aH/yoK VSnha3DbaXYC8MtBoRMJP844LlY6dSa/bDVm0H83fsqECUxgv5sbr4hI X-Gm-Gg: AfdE7cnilJub/Y/2YX7RlfvddqAnYlQHoUPwPk5q3m7L/vWWTcgrPucAIWRfBdB5t8u gQ1MeRh5AnQ3WwTxg/ygleYxl+AELhfi8afru9mS0I2pcWt0mBzA9dFeZzHSMa/tDaVb+L8Clex o2DghsSwztEmZtaYUEHFxBK3qn40aXM/WuaN08WJiP8kA3lQtluQG1eMY8YaTe8/t8XwY+Ht3iN p3BvCG7EyPPo3eYECL73ooJwpp3xZiCLNpqaeDca0cuSt3MyeoH3RsN6B1AIwjk93zGe+sXNTGb XzfhwUFXGDp5kyOpPp+5Fgzq3rEYswmM2J+OgT3KAZp9bkXyTkwTiba0ebh2y/WGl0gyt7lZ8Kc VFeFgGsyU8mlc5xV7Sf/EVAomsXff9nulO6CbCBof9RHKERVsTGCS0D2IIgUxQYLxTx/eP7oXPx 4A7q/6i1LoTYUy7wM= X-Received: by 2002:a05:600c:138e:b0:490:d38c:7836 with SMTP id 5b1f17b1804b1-49266832313mr204468025e9.3.1782648002865; Sun, 28 Jun 2026 05:00:02 -0700 (PDT) Received: from [192.168.0.50] ([89.149.120.180]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47327c47122sm3905557f8f.34.2026.06.28.05.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 28 Jun 2026 05:00:02 -0700 (PDT) Message-ID: Date: Sun, 28 Jun 2026 15:00:01 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: 035_standby_logical_decoding might fail due to FATAL message lost inside libpq To: "Hayato Kuroda (Fujitsu)" Cc: pgsql-hackers References: Content-Language: en-US From: Alexander Lakhin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello Kuroda-san, 25.06.2026 05:04, Hayato Kuroda (Fujitsu) wrote: > While sleeping, I came up with the idea; instead of waiting until the slot is > active, we can wait pg_recvlogical receives the ack from the walsender and enters > the loop. Attached patch implemented like that. > > On my env, the patch could resolve the issue. How do you feel? Thank you for the fix! I agree with your idea -- It makes sense to me to modify make_slot_active() so that it returns the handle of pg_recvlogical after it reaches the desired state from its own perspective. With the the above repro modification applied, the fixed test passes for me too. Best regards, Alexander