Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nN3QV-0007J9-AQ for pgsql-performance@arkaria.postgresql.org; Thu, 24 Feb 2022 02:00:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nN3QU-0004Qy-2M for pgsql-performance@arkaria.postgresql.org; Thu, 24 Feb 2022 02:00:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nN3QT-0004Qo-Or for pgsql-performance@lists.postgresql.org; Thu, 24 Feb 2022 02:00:13 +0000 Received: from mail-io1-xd2c.google.com ([2607:f8b0:4864:20::d2c]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nN3QP-0002v3-6B for pgsql-performance@postgresql.org; Thu, 24 Feb 2022 02:00:12 +0000 Received: by mail-io1-xd2c.google.com with SMTP id 195so1155961iou.0 for ; Wed, 23 Feb 2022 18:00:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=qlLJhb/5hO/QTGERpgi+G0jU0D2G4hFL+qZzyNPQrOQ=; b=B52m5lgcXOzEHqu8lkhSL85KF0obfnoYHwssqoIYDnd51eKexQ3k27cIdK6jEix+ee d1A4E22U8/ixYpqQhjyg3fCq2bDpWv7hlZBmL4mBlY6pls/npsvoYnWTtdf13WUQgWV5 XNH7sZOBTtE9cE5jsM+a6eVQW86DRTETRdctE4hhnQpy5cdvZ7F8MRm0HHJ1zQH5k0uQ uCHktBnEvjjlxpEpaezV6SFOlmbtiLN2AbHCxqeoZZpahd0zG5IPb/fM3OS78ipeHyGv cFi/l0nIGosxWEwQcM8/Ft+vsghBTXlEMRkRU/ouaCrkB4mwK/MvxH+wctiIjHuSC2N6 LtvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=qlLJhb/5hO/QTGERpgi+G0jU0D2G4hFL+qZzyNPQrOQ=; b=SYJvZlh8X2+k6RJ536qaFc/BkgfETGPkLAJwbaUVaGHIELmZwKmBYKeeL72kSLkivg WG+FPJ5doDwDT3s1OyYTVKMOF43mRDrzQTqXld+NnYAzofwOp4m6jZrSWM0xNQ/MfmK3 ivG3/2c5Q0f3zovwHMObak2fDi1I0HxrXzRXRSt5Z19w9rIRMnmlzVaA2FP9ytsCeF3z yoaOP+bHRXmRVFtr8yAy8nl6Y1m8OOooMHr6z5Bu62FwdhLSyzkfq7aIngaLV12arMB4 rdz7jOR2ebVuleAW7prwvXrsBx6XkGyG/8azZdzjKkyz0IrsCDJTdzWqP6I6H7Twfbpy Ceiw== X-Gm-Message-State: AOAM531MzA8X7Ul12LkP8Abak8ozcQIe4m94nPe/x27lNqXRVZH1sAyW at3z59o11nDg3M4eR5Ffil3aZWY22ORJog== X-Google-Smtp-Source: ABdhPJz1yBlHAnPohR313twMFMSW49wQ9gv9v+qRGuQooc0WbgOwLwjQKUdOVN4qj9LGRUOCck8YIA== X-Received: by 2002:a5d:8b8c:0:b0:613:8223:321a with SMTP id p12-20020a5d8b8c000000b006138223321amr344344iol.203.1645668008264; Wed, 23 Feb 2022 18:00:08 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id v62sm783889iof.26.2022.02.23.18.00.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Feb 2022 18:00:06 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 6328D800F3C; Wed, 23 Feb 2022 20:00:05 -0600 (CST) Date: Wed, 23 Feb 2022 20:00:05 -0600 From: Justin Pryzby To: ldh@laurent-hasson.com Cc: pgsql-performance@postgresql.org Subject: Re: An I/O error occurred while sending to the backend (PG 13.4) Message-ID: <20220224020005.GT9008@telsasoft.com> References: <20211204175926.GC17618@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk You originally mailed about an error on the client, and now you found corresponding server logs, which suggests a veritable network issue. Are the postgres clients and server on the same subnet ? If not, what are the intermediate routers ? Is there any NAT happening ? Do those devices have any interesting logs that correspond with the server/client connection failures ? Have you tried enabling TCP keepalives ? This might help to convince a NAT device not to forget about your connection. https://www.postgresql.org/docs/current/runtime-config-connection.html tcp_keepalives_idle=9 tcp_keepalives_interval=9 tcp_keepalives_count=0 tcp_user_timeout=0 -- You apparently have this set, but it cannot work on windows, so just generates noise. On linux, you can check the keepalive counters in "netstat -not" to be sure that it's enabled. A similar switch hopefully exists for windows. -- Justin