Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1srhqa-003uGk-Gc for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Sep 2024 17:55:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1srhqX-00BDs7-Te for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Sep 2024 17:55:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1srhqX-00BDrz-Ky for pgsql-bugs@lists.postgresql.org; Fri, 20 Sep 2024 17:55:10 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1srhqS-000D7K-M2 for pgsql-bugs@lists.postgresql.org; Fri, 20 Sep 2024 17:55:09 +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 48KHt2Cb2466049; Fri, 20 Sep 2024 13:55:02 -0400 From: Tom Lane To: Abhishek Mittal cc: Junwang Zhao , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18624: Memory Leak Issue with PostgreSQL Connection During COPY Command Execution. In-reply-to: References: <18624-451f53141608af60@postgresql.org> Comments: In-reply-to Abhishek Mittal message dated "Thu, 19 Sep 2024 16:34:01 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2466047.1726854902.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 20 Sep 2024 13:55:02 -0400 Message-ID: <2466048.1726854902@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Abhishek Mittal writes: > Please find the table schema below along with the attached sample CSV fi= le. I too tried to reproduce this, using both Junwang's \gexec method and the C program. I don't see any leak. However, I tested v12 branch tip, so it's possible that you are hitting a problem that's been fixed since 12.16. I notice a plausibly-related item in the 12.18 release notes: Fix memory leak when performing JIT inlining (Andres Freund, Daniel Gusta= fsson) If that's it, then setting "jit =3D off" should do as a temporary workaround. If updating to 12.20 does not resolve the problem, then we are going to need more information. Is this straight community Postgres, or some variant? If you built it yourself, what options did you use? Do you have any extensions installed? regards, tom lane