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 1opV1r-00012E-Lp for pgsql-bugs@arkaria.postgresql.org; Mon, 31 Oct 2022 13:40:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1opV1p-0005XF-Rw for pgsql-bugs@arkaria.postgresql.org; Mon, 31 Oct 2022 13:40:37 +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 1opV1p-0005X5-KC for pgsql-bugs@lists.postgresql.org; Mon, 31 Oct 2022 13:40:37 +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 1opV1n-00019H-7L for pgsql-bugs@lists.postgresql.org; Mon, 31 Oct 2022 13:40:36 +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 29VDeNnT527650; Mon, 31 Oct 2022 09:40:25 -0400 From: Tom Lane To: lauri.laanmets@eesti.ee cc: pgsql-bugs@lists.postgresql.org Subject: Re: Memory leak on subquery as scalar operand In-reply-to: References: Comments: In-reply-to Lauri Laanmets message dated "Sun, 30 Oct 2022 19:13:36 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <527648.1667223623.1@sss.pgh.pa.us> Date: Mon, 31 Oct 2022 09:40:23 -0400 Message-ID: <527649.1667223623@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Lauri Laanmets writes: > There seems to be a memory leak in PostgreSQL for Linux (doesn't happen on > Windows). At least in versions 12 to 14 (and not in 9.5). It can be > reproduced with the following SQL script on an empty database. Thanks for the test case! Unfortunately, I can't see any ill effects with it in currently released versions (I tried 12, 14, 15, and HEAD). Which minor releases did you try? Do you have any non-default settings or build options? regards, tom lane