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 1juQA5-00061a-9h for pgsql-hackers@arkaria.postgresql.org; Sun, 12 Jul 2020 00:48:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1juQA2-0004RD-SW for pgsql-hackers@arkaria.postgresql.org; Sun, 12 Jul 2020 00:48:06 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1juQA2-0004R6-LN for pgsql-hackers@lists.postgresql.org; Sun, 12 Jul 2020 00:48:06 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1juQ9w-0001S5-GZ for pgsql-hackers@postgresql.org; Sun, 12 Jul 2020 00:48:05 +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 06C0lsKM2463592; Sat, 11 Jul 2020 20:47:54 -0400 From: Tom Lane To: Tomas Vondra cc: "David G. Johnston" , Stephen Frost , Peter Geoghegan , Jeff Davis , Alvaro Herrera , Andres Freund , Bruce Momjian , Robert Haas , David Rowley , Justin Pryzby , Melanie Plageman , "pgsql-hackers@postgresql.org" Subject: Re: Default setting for enable_hashagg_disk In-reply-to: <20200712003037.wzrcltujwzwiwlfr@development> References: <20200709225840.GE12375@tamriel.snowman.net> <20200710000842.GF12375@tamriel.snowman.net> <20200710141714.GI12375@tamriel.snowman.net> <20200710215012.GN12375@tamriel.snowman.net> <2165606.1594418399@sss.pgh.pa.us> <20200711142213.GP12375@tamriel.snowman.net> <20200712003037.wzrcltujwzwiwlfr@development> Comments: In-reply-to Tomas Vondra message dated "Sun, 12 Jul 2020 02:30:37 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2463590.1594514874.1@sss.pgh.pa.us> Date: Sat, 11 Jul 2020 20:47:54 -0400 Message-ID: <2463591.1594514874@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Tomas Vondra writes: > I don't know, but one of the main arguments against simply suggesting > people to bump up work_mem (if they're hit by the hashagg spill in v13) > was that it'd increase overall memory usage for them. It seems strange > to then propose a new GUC set to a default that would result in higher > memory usage *for everyone*. It seems like a lot of the disagreement here is focused on Peter's proposal to make hash_mem_multiplier default to 2.0. But it doesn't seem to me that that's a critical element of the proposal. Why not just make it default to 1.0, thus keeping the default behavior identical to what it is now? If we find that's a poor default, we can always change it later; but it seems to me that the evidence for a higher default is a bit thin at this point. regards, tom lane