Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCS5A-0001Cv-7i for pgsql-bugs@arkaria.postgresql.org; Mon, 13 Jun 2016 13:39:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bCS59-0007x6-Qu for pgsql-bugs@arkaria.postgresql.org; Mon, 13 Jun 2016 13:39:11 +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 1bCS59-0007wv-FH for pgsql-bugs@postgresql.org; Mon, 13 Jun 2016 13:39:11 +0000 Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bCS55-0006bW-P9 for pgsql-bugs@postgresql.org; Mon, 13 Jun 2016 13:39:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20140207; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=SgQPhues/16mmq6f6t+8f5aCDFfa4ZyMMEJ/ZIgVotQ=; b=tfEqInzUT6Ti4PAi/NJJ+/ACou W1BZRSiDmbvV14vDpD6R3dmbtvzGGjKsngMHUC7ZMegDiRuAwkmrwLdXA5okS8gSHKxSvdvRL+2Zx qq7Oh6AET+Hc17YFGityXQqeD; Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by depesz.com with esmtpa (Exim 4.87) (envelope-from ) id 1bCS53-0004UG-Um; Mon, 13 Jun 2016 15:39:06 +0200 Date: Mon, 13 Jun 2016 15:39:05 +0200 From: hubert depesz lubaczewski To: Tom Lane Cc: Jeff Janes , Pg Bugs Subject: Re: PostgreSQL (9.3 and 9.6) eats all memory when using many tables Message-ID: <20160613133905.GA16492@depesz.com> Reply-To: depesz@depesz.com References: <20160609154610.GA20600@depesz.com> <20160613093907.GA10381@depesz.com> <4400.1465824992@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4400.1465824992@sss.pgh.pa.us> User-Agent: Mutt/1.6.0 (2016-04-01) X-Pg-Spam-Score: -3.4 (---) 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 On Mon, Jun 13, 2016 at 09:36:32AM -0400, Tom Lane wrote: > Another problem, if the bloat is being driven by explicit PREPARE commands > as you illustrate here, is that the backend doesn't get to silently I did the same test with $dbh->{pg_server_prepare} = 0; (in pg logs, it changes logged lines from: prepare :... bind :... execute :... into: statement:... afterwards memory problems seemed to be the same. Best regards, depesz -- The best thing about modern society is how easy it is to avoid contact with it. http://depesz.com/ -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs