Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f0yLf-00077M-8R for pgsql-general@arkaria.postgresql.org; Tue, 27 Mar 2018 23:49:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f0yLe-0004oy-4X for pgsql-general@arkaria.postgresql.org; Tue, 27 Mar 2018 23:49:50 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f0yLd-0004on-PX for pgsql-general@lists.postgresql.org; Tue, 27 Mar 2018 23:49:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f0yLa-000441-RU for pgsql-general@lists.postgresql.org; Tue, 27 Mar 2018 23:49:48 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w2RNng5F006165; Tue, 27 Mar 2018 19:49:42 -0400 From: Tom Lane To: Adrian Klaver cc: armand pirvu , pgsql-general@lists.postgresql.org Subject: Re: connection dropped from the backend server In-reply-to: <0b0e0503-0e34-32cd-50a7-9be77601a2a5@aklaver.com> References: <88B8EEC2-917D-498D-938B-DD4C2C3C7008@gmail.com> <9c4890fe-df61-eae9-48c0-f01fbafedf3a@aklaver.com> <5FCACAED-139A-4D38-80AA-895C5884631E@gmail.com> <0b0e0503-0e34-32cd-50a7-9be77601a2a5@aklaver.com> Comments: In-reply-to Adrian Klaver message dated "Tue, 27 Mar 2018 16:11:32 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6163.1522194582.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 27 Mar 2018 19:49:42 -0400 Message-ID: <6164.1522194582@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Adrian Klaver writes: > On 03/27/2018 04:07 PM, armand pirvu wrote: >> As long as the connection stays up yes data gets fine across >> In pg_stat_activity I see the node ip address where tail -f piped into = psql happens > So what does the rest of that record show? In particular for: I wonder how often data gets put into the pipe. If it's "not very often", maybe the connection from psql to the server is timing out due to inactivity? This would be the fault of a firewall or something in between. You could probably fix it by enabling (more aggressive) TCP keepalive settings. regards, tom lane