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 1lajGK-0002E3-Vx for pgsql-general@arkaria.postgresql.org; Sun, 25 Apr 2021 18:13:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lajGJ-0003aK-MV for pgsql-general@arkaria.postgresql.org; Sun, 25 Apr 2021 18:13:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lajGJ-0003aD-Ep for pgsql-general@lists.postgresql.org; Sun, 25 Apr 2021 18:13:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lajGH-0005LY-F6 for pgsql-general@lists.postgresql.org; Sun, 25 Apr 2021 18:13:43 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 13PIDaKM2004842; Sun, 25 Apr 2021 14:13:36 -0400 From: Tom Lane To: Karsten Hilbert cc: Matthias Apitz , Laurenz Albe , pgsql-general@lists.postgresql.org Subject: Re: client waits for end of update operation and server proc is idle In-reply-to: References: <0551daad25ee518071e002ca17c4b6dac08a236c.camel@cybertec.at> <1935464.1619365905@sss.pgh.pa.us> <2002577.1619371285@sss.pgh.pa.us> Comments: In-reply-to Karsten Hilbert message dated "Sun, 25 Apr 2021 20:05:21 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2004840.1619374416.1@sss.pgh.pa.us> Date: Sun, 25 Apr 2021 14:13:36 -0400 Message-ID: <2004841.1619374416@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Karsten Hilbert writes: > Am Sun, Apr 25, 2021 at 01:21:25PM -0400 schrieb Tom Lane: >> Still, the apparent message length is then "RP-2" (0x52502d32) >> which is bigger than 1GB so I don't quite understand why you didn't >> get an "out of memory" error. > But he did, didn't he ? Those log messages do appear to match the theory, but in the case at hand, the server seems to have hung up without throwing any error. However, we'd reproduce that if the apparent "message length" was less than 1GB (assuming the server process could malloc that much memory). That'd occur for any second byte less than 0x40, such as an ASCII digit. regards, tom lane