Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLL8l-0008RC-44 for pgsql-bugs@arkaria.postgresql.org; Fri, 08 Jul 2016 02:03:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bLL8k-0007pJ-N7 for pgsql-bugs@arkaria.postgresql.org; Fri, 08 Jul 2016 02:03:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bLL87-00078C-Rn for pgsql-bugs@postgresql.org; Fri, 08 Jul 2016 02:02:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bLL80-0001VI-OS for pgsql-bugs@postgresql.org; Fri, 08 Jul 2016 02:02:59 +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 u6821IN8008344; Thu, 7 Jul 2016 22:01:18 -0400 From: Tom Lane To: digoal@126.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14234: PostgreSQL consuming large amount of memory for persistent connection In-reply-to: <20160708012833.1419.89062@wrigleys.postgresql.org> References: <20160708012833.1419.89062@wrigleys.postgresql.org> Comments: In-reply-to digoal@126.com message dated "Fri, 08 Jul 2016 01:28:33 -0000" Date: Thu, 07 Jul 2016 22:01:18 -0400 Message-ID: <8343.1467943278@sss.pgh.pa.us> X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org digoal@126.com writes: > why PostgreSQL session do not release these memory? > it will comsume these memory until disconnect. Your session has created and accessed 100000 tables plus 100000 views. I do not think you should complain if that takes a great deal of memory. Either rethink why you need so many tables, or buy hardware commensurate with the size of your problem. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs