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 1lYrQv-00049N-0C for pgsql-bugs@arkaria.postgresql.org; Tue, 20 Apr 2021 14:32:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lYrQr-0005VA-K4 for pgsql-bugs@arkaria.postgresql.org; Tue, 20 Apr 2021 14:32:53 +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 1lYrQr-0005V0-EC for pgsql-bugs@lists.postgresql.org; Tue, 20 Apr 2021 14:32:53 +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 1lYrQo-0001oe-PN for pgsql-bugs@lists.postgresql.org; Tue, 20 Apr 2021 14:32:52 +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 13KEWmOv523764; Tue, 20 Apr 2021 10:32:48 -0400 From: Tom Lane To: rekgrpth@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16974: memory leak In-reply-to: <16974-4f1a4803e727c3cf@postgresql.org> References: <16974-4f1a4803e727c3cf@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Tue, 20 Apr 2021 10:34:47 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <523762.1618929168.1@sss.pgh.pa.us> Date: Tue, 20 Apr 2021 10:32:48 -0400 Message-ID: <523763.1618929168@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > ... > 7) in opened psql execute above two files periodically > \i sql/update.sql > \i sql/timeout.sql > 8) the memory (using by corresponded postgres backend) is increasing > constantly I tried this, and I don't see any evidence of a leak, not even after I inserted some data into "task" so that the queries were actually doing something. The backend's "SHR" memory size will increase for awhile, but that's just evidence of it touching more and more of the shared buffer pool over time. The total virtual memory size ("VIRT" column in top) is rock-solid steady, so there's no actual accumulation of leaked memory. Perhaps there's an issue here somewhere, but if so, you haven't given a sufficient description of how to reproduce it. regards, tom lane