Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i1AQv-0007kV-Vf for pgsql-performance@arkaria.postgresql.org; Fri, 23 Aug 2019 14:20:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i1AQu-0006jh-KT for pgsql-performance@arkaria.postgresql.org; Fri, 23 Aug 2019 14:20:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i1AQu-0006jN-8J for pgsql-performance@lists.postgresql.org; Fri, 23 Aug 2019 14:20:52 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1i1AQq-0000OX-3j for pgsql-performance@lists.postgresql.org; Fri, 23 Aug 2019 14:20:49 +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 x7NEKVuN026357; Fri, 23 Aug 2019 10:20:31 -0400 From: Tom Lane To: Gunther cc: Tomas Vondra , Justin Pryzby , Jeff Janes , pgsql-performance@lists.postgresql.org, Alvaro Herrera Subject: Re: Out of Memory errors are frustrating as heck! In-reply-to: <7ed3d2a0-0a1d-0bd2-5417-9b69038abfcf@gusw.net> References: <20190421161434.4hedytsadpbnglgk@development> <19198.1555857403@sss.pgh.pa.us> <20190421164022.GD14223@telsasoft.com> <20190422030927.3huxq7gghms4kmf4@development> <2d422e7e-3105-3320-f3d5-801bd6a8b27d@gusw.net> <20190423204348.GJ3925@telsasoft.com> <20190424003633.ruvhbv5ro3fawo67@development> <20190428141901.5dsbge2ka3rxmpk6@development> <7ed3d2a0-0a1d-0bd2-5417-9b69038abfcf@gusw.net> Comments: In-reply-to Gunther message dated "Fri, 23 Aug 2019 09:17:38 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26355.1566570031.1@sss.pgh.pa.us> Date: Fri, 23 Aug 2019 10:20:31 -0400 Message-ID: <26356.1566570031@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Gunther writes: > Hi all, I am connecting to a discussion back from April this year. My > data has grown and now I am running into new out of memory situations. It doesn't look like this has much of anything to do with the hash-table discussion. The big hog is an ExprContext: > ExprContext: 1107296256 total in 142 blocks; 6328 free (101 chunks); > 1107289928 used So there's something leaking in there, but this isn't enough info to guess what. regards, tom lane