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 1odV0F-0004Br-BM for pgsql-general@arkaria.postgresql.org; Wed, 28 Sep 2022 11:13:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1odV0D-0003rZ-NW for pgsql-general@arkaria.postgresql.org; Wed, 28 Sep 2022 11:13:21 +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 1odV0C-0003rN-H0 for pgsql-general@lists.postgresql.org; Wed, 28 Sep 2022 11:13:21 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1odV08-0000gR-At for pgsql-general@postgresql.org; Wed, 28 Sep 2022 11:13:20 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 5F6C55C004B; Wed, 28 Sep 2022 07:13:10 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 28 Sep 2022 07:13:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1664363590; x=1664449990; bh=B x2dujE3DwGTuLMU1apoXAIZHSLq1rzcqKcIn+mIbmo=; b=LO8hj65H1n8geO+ll vGs8LyKY9fNsACXDx1GAaNhkKAVF2SnD0Aqkgi53UnHOZkfAFz88/d+y9JY0oykm wpK8SztTF9Q6u05hMU7Oqqwc895mY1/edovFWpzI8Aj/laq+LrPXdX8dSC8GMMbh TuIuQX+mYU3AUQPt74j7x26Jjhh1tp2O+IjaNArhH4Ekw9V8tn1hR4WajM9DqCd7 kP3HDg3jADN6Y/5mvugOLOmFW7UNQW/YIuucYy8djlh7fH8/842R/zZjNJbSUYvu xaUDxK98b7loLYrnQ5o111j0H4j68qiwedptMnAnWpt/AvixLuGFnuGVoIavU19B JVcXQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeegkedgfeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepkeefieehkeekffdtffeggedtffelkeeigfduvdekgfdu gfeluedtiefhkeetudfgnecuffhomhgrihhnpehgihhthhhusgdrtghomhdpvghnthgvrh hprhhishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 28 Sep 2022 07:13:09 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id DB0BF5E; Wed, 28 Sep 2022 13:13:06 +0200 (CEST) Date: Wed, 28 Sep 2022 13:13:06 +0200 From: Alvaro Herrera To: "Zwettler Markus (OIZ)" Cc: "pgsql-general@postgresql.org" Subject: Re: is there still a memory leak with hash joins in PG 12.11 ? Message-ID: <20220928111306.rslbso5vtcjcoilt@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-Sep-28, Zwettler Markus (OIZ) wrote: > I found this blog post talking about a memory leak having hash joins due to a larger work_mem. > https://gist.github.com/luhn/2b35a9b31255e3a6a2e6a06d1213dfc9 Oh dear, is that what passes for a blog post these days? > Does anyone know if this problem is still there in PG 12.11 ? It wasn't there in 9.5, so it seems safe to believe it isn't in 12.11. > We are running on PG 12.11. > We recognized an evergrowing memory usage. > > work_mem = 50M > there are some regularly hash joins. I think it's more likely that this is a new, different bug (assuming it is a bug at all). But you'd have to provide more details in order to track it down. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "El Maquinismo fue proscrito so pena de cosquilleo hasta la muerte" (Ijon Tichy en Viajes, Stanislaw Lem)