Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZldO3-0000ka-DY for pgsql-bugs@arkaria.postgresql.org; Mon, 12 Oct 2015 13:43:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZldO2-0005fs-Us for pgsql-bugs@arkaria.postgresql.org; Mon, 12 Oct 2015 13:43:34 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZldO1-0005bO-Sp for pgsql-bugs@postgresql.org; Mon, 12 Oct 2015 13:43:34 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZldNy-0001bC-8x for pgsql-bugs@postgresql.org; Mon, 12 Oct 2015 13:43:32 +0000 Received: from intern.anarazel.de (ns1.anarazel.de [217.115.131.41]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id B16DF860001; Mon, 12 Oct 2015 15:43:28 +0200 (CEST) Date: Mon, 12 Oct 2015 15:43:28 +0200 From: Andres Freund To: Kevin Grittner Cc: "jkoceniak@mediamath.com" , "pgsql-bugs@postgresql.org" Subject: Re: BUG #13672: What is the purpose of the temp_buffers setting? Message-ID: <20151012134328.GA30738@alap3.anarazel.de> References: <20151009234654.328.91105@wrigleys.postgresql.org> <1111603541.2485705.1444657036683.JavaMail.yahoo@mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1111603541.2485705.1444657036683.JavaMail.yahoo@mail.yahoo.com> X-Pg-Spam-Score: -4.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 On 2015-10-12 13:37:16 +0000, Kevin Grittner wrote: > Personally, I would tend to think that the cases in which > increasing this setting would show any improvement would be few and > far between. Huh? If it's set to a small value and you write a bit of data all your changes will more or less directly have to go to the OS. That can be a massive performance problem, particularly if the workload has some randomness to it. I think memory overcommit pretty much "saves" you from every process using all the temporary memory unless needed. That's not to say it's a good idea to set it to a large value in all sessions, but it's not *THAT* bad. Greetings, Andres Freund -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs