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 1lZrZi-0006hv-34 for pgsql-general@arkaria.postgresql.org; Fri, 23 Apr 2021 08:54:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lZrZh-0007no-11 for pgsql-general@arkaria.postgresql.org; Fri, 23 Apr 2021 08:54:09 +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 1lZrZg-0007nh-OG for pgsql-general@lists.postgresql.org; Fri, 23 Apr 2021 08:54:08 +0000 Received: from mout.gmx.net ([212.227.17.21]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lZrZZ-00054Y-TH for pgsql-general@lists.postgresql.org; Fri, 23 Apr 2021 08:54:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1619168039; bh=ABDxyE4JfvWWLqars2TIjDni/hUqHVfaEWV7YdMWXpE=; h=X-UI-Sender-Class:Date:From:To:Subject:References:In-Reply-To; b=kGPTWbJdj1oPQHoHR3ADviLEm+lLPbGBe8shiaSnxIjZ5hKMSIT+hl2IfW14Lcu6Z qdlNkVT6jiLocTFSdkS72e9Hf/Ww/H6HL8vp7Z0Ss4Aq20+9hIv5OGdM7x57bfr2Xl UY9lNFF3steAcJuwhZTCitzf3GzOGz0mgAzT2fhk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from hermes ([77.191.17.249]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MFKGP-1lpZxG1Fvt-00Ffqj for ; Fri, 23 Apr 2021 10:53:59 +0200 Received: from ncq by hermes with local (Exim 4.94) (envelope-from ) id 1lZrZV-0007Eo-VS for pgsql-general@lists.postgresql.org; Fri, 23 Apr 2021 10:53:58 +0200 Date: Fri, 23 Apr 2021 10:53:57 +0200 From: Karsten Hilbert To: pgsql-general@lists.postgresql.org Subject: Re: client waits for end of update operation and server proc is idle Message-ID: References: <0551daad25ee518071e002ca17c4b6dac08a236c.camel@cybertec.at> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <0551daad25ee518071e002ca17c4b6dac08a236c.camel@cybertec.at> Ma_X_il-Followup-to: d Re_X_turn-receipt-to: Karsten.Hilbert@gmx.net Di_X_sposition-Notification-To: Karsten.Hilbert@gmx.net X-Confi_X_rm-Reading-To: Karsten.Hilbert@gmx.net X-Pri_X_ority: 2 (High) Sender: X-Provags-ID: V03:K1:QIxprX6C8s9ZFn2Ci5tRT/KNdg3FFkTeOl6r+GtFrhkJpSvSzc1 yVxE+UHbkUGN6aOHc95hNv5wBRFcUNm8cCxUvAeZ4GyXzP95Xn7hICF3pM+lnBIcnBMpqOp o0ixpftHzr7+1/L5vC0EtLOJ1JeSHV8fRl2Q9BTOWPN0cZmk/by+krM5NQZ4gXeEJr1N+M9 bHElQoddPEbzyx49f80gg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:P+hTaO6nlos=:B/Y40ajYl6YsjIQ2Cj+KFb 0BHpyABveg1DVfAZx56XhPUHE+7CO/vZe4B3HtqkFlMzhMinW/qQuXYrGhtVAIRMrWcQZ+ru3 PdOONGzJlGe64VX/tnScKc3VK5NXpJBjJYv8ZFsFjW5f1Ye5S08kwcNvlp385/SoAqnAMR7C7 nZDXekaf3ERWU37hwMFnp0UQBtLI2mMpSMvI2bGD2MHlOF1N4Vit6PkxkcM+p9irKyGlmLz4a cSCHFFX22oYTvcGal28af8mIS3PSEbHRNRgRc/W9gmAGdiHng9iykXTIf8tcvMFJnprF/QWLF uleJ4z1Z3s3ti3DI9z1bq7mSHMDpvvlFLpLeSImG+opGlW8mZCN1Tkjw4Oh+7cEKqsZHIKuDb 8ElazAvRgOChzt2BQ7CBPxC+3mlMSCNiIa6KzfuiSObAO4F0qnJCwNGo0MwxVhbQOp5ezguS9 acxuKLCcdfZpwKb/hOI39yLN2x1sRCMwRkMD4ZquaDZ9i4iZLiXIPks9K7IgNczgYvdhRP+Ac /JIgFje19zxH4lGOFQPcSSwaY28PAyoQ0FqYBOrpuYChOrSs3/Ac2SSpBH23IV8Xui8E2+8Pj GTzPSFc6PHOyj6bSwRpJgivQBSKa7z569N3koZCC8XOH79YuySWEvmivXgL+MeyTcxMMUrvX/ Y9BuKmP3Oqvrg3DG6EfN85KtvAYaIwRAvyZ7FpRV5QRnwyg7j4HKfZVa2PdyjQEZQfGXgY9w0 s//z/Tnn+gyFA8ppQaK7uLb8ZMRBRa+7kIjZ6M7MDYhJfP2gAldkrZlVzemJqbo95sWAwdUtl HavSy5TPuV0DF6rXQEA0hXNtnMm4nI7hjkus4cwcXNxn2rQBlK4RAx1J37tarVtTES+763GmQ vAPoPjddjzHJsSxqGMtzcyZN3IO3sDQo7QjqLWNFJv6zgE8q44/F7aHK4HXmSSGStJ9R1Aei6 nWPmS6VFRVIvDHv7kOszJcawVngBLVFzEcHYGgQ4LJqZzm+zcseEWLbqzyPP+1U76kKixmv38 L5RQOqT60SP94GGOuMD37cNuMr8UKY+8BGNBCrxzwvjB+C9CPdPYdzpGx+ZHYgOL99cZYPEFK aFMTZZGrm21zChjb5D33FG4PkaRk6c1za3VcAXEFHVUMBzrwhyGGVzq9AnFPNgyjTE44nZ9Bw WuW3hQHyr07ihAyIXDVK+9EBVKii6dALk3LkJ0Xl43VqAwqdVf7Ho5zVnXNXRZUgrX1viIfjg 90PR6OZIqXgmS9KaG List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Am Fri, Apr 23, 2021 at 10:48:24AM +0200 schrieb Laurenz Albe: > > The serverlog has around this time (sorry for German): > > > > 2021-04-23 05:55:23.591 CEST [2317] LOG: unvollst=E4ndige Message vom= Client > > 2021-04-23 05:55:23.593 CEST [2317] FEHLER: Speicher aufgebraucht > > 2021-04-23 05:55:23.593 CEST [2317] DETAIL: Kann Zeichenkettenpuffer = mit 0 Bytes nicht um 1380986158 Bytes vergr=F6=DFern. > > 2021-04-23 05:55:23.593 CEST [2317] LOG: konnte Daten nicht an den Cl= ient senden: Daten=FCbergabe unterbrochen (broken pipe) > > 2021-04-23 05:55:23.593 CEST [2317] FATAL: Verbindung zum Client wurd= e verloren > > 2021-04-23 05:57:20.339 CEST [27190] LOG: unerwartetes EOF auf Client= -Verbindung mit einer offenen Transaktion > > 2021-04-23 05:59:17.419 CEST [26827] LOG: unerwartetes EOF auf Client= -Verbindung mit einer offenen Transaktion > > > > What else could be checked for this? Any hints about this issue? > > It seems pretty clear that both the client and the server are waiting fo= r each other. > > The server is of the opinion that it has completed the query, while the = client is > still waiting for the response. > > I would look for the problem in the network between both. The error mes= sages > (unexpected EOF on client connection, broken pipe) seem to point in the = same direction. It also reports an out-of-memory situation: >> 2021-04-23 05:55:23.593 CEST [2317] FEHLER: Speicher aufgebraucht >> 2021-04-23 05:55:23.593 CEST [2317] DETAIL: Kann Zeichenkettenpuffer m= it 0 Bytes nicht um 1380986158 Bytes vergr=F6=DFern. It seems what is to be sent to the client is "too large". Following which sending the data seems (intentionally?) aborted by the server, which the other side likely reports as loss-of-signal. Also, where does the "imcomplete message from client" originate from ? Karsten =2D- GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B