Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V4aTF-0001Jo-PD for pgsql-bugs@arkaria.postgresql.org; Wed, 31 Jul 2013 17:45:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V4aTF-0000SW-8k for pgsql-bugs@arkaria.postgresql.org; Wed, 31 Jul 2013 17:45:57 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V4RiP-0005Nc-Ml for pgsql-bugs@postgresql.org; Wed, 31 Jul 2013 08:25:01 +0000 Received: from mx2.icm.edu.pl ([213.135.59.44]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V4RiL-00047p-Ra for pgsql-bugs@postgresql.org; Wed, 31 Jul 2013 08:25:00 +0000 Received: from webmail.icm.edu.pl (webmail.icm.edu.pl [213.135.59.42]) (authenticated bits=0) by mx2.icm.edu.pl (8.14.0/8.14.0/rzm-5.7/gw-icm) with ESMTP id r6V8Odk9008878 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 31 Jul 2013 10:24:39 +0200 Received: from 213.135.60.2 (SquirrelMail authenticated user grzesb) by webmail.icm.edu.pl with HTTP; Wed, 31 Jul 2013 10:24:40 +0200 (CEST) Message-ID: <1e0b28053877c4a86f39784ed69d8514.squirrel@webmail.icm.edu.pl> In-Reply-To: <1375220280.46993.YahooMailNeo@web162905.mail.bf1.yahoo.com> References: <1375220280.46993.YahooMailNeo@web162905.mail.bf1.yahoo.com> Date: Wed, 31 Jul 2013 10:24:40 +0200 (CEST) Subject: Re: BUG #8318: memory leak during CREATE TEMPORARY TABLE From: G.Bakalarski@icm.edu.pl To: "Kevin Grittner" Cc: "pgsql-bugs@postgresql.org" Reply-To: G.Bakalarski@icm.edu.pl User-Agent: SquirrelMail/1.4.17 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-2 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0rc1 (mx2.icm.edu.pl [213.135.59.44]); Wed, 31 Jul 2013 10:24:40 +0200 (CEST) X-Filtry: w sprawie filtracji wirusow i spamu pisz do: spam@icm.edu.pl X-Spam-Score: -3.461 () AWL,BAYES_00,SOBIG_X_PRIORITY X-Spam-Report: SpamAssassin v3.2.5-rzm report pts rule name description 0.3 SOBIG_X_PRIORITY X-Priority: 3 (Normal) - possible Sobig remains -3.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] -0.2 AWL AWL: From: address is in the auto white-list X-Scanned-By: MIMEDefang 2.64 on 213.135.59.44 X-Pg-Spam-Score: -0.7 (/) 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 > "g.bakalarski@icm.edu.pl" wrote: > >> When doing these kind of statements > >> execute : CREATE TEMPORARY TABLE [...] > >> After few days [...] my huge server (192GB of RAM), gets stucked >> due to no memory available (usually %commit is around 103-105%), >> linux OOM killer goes into action - it usually kills one of >> postgres processes - postmaster restart all databases) and after >> all linux  has again some 100GB of not commited memory > > What do you have as settings for temp_buffers and max_connections? > temp_buffers = 16GB max_connections = 250 (with real number of connections about 120 and not going above) Grzegorz -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs