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 1jwrew-0007VQ-JB for pgsql-hackers@arkaria.postgresql.org; Sat, 18 Jul 2020 18:34:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jwrev-0003HO-ID for pgsql-hackers@arkaria.postgresql.org; Sat, 18 Jul 2020 18:34:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jwrbs-0008TH-TD for pgsql-hackers@lists.postgresql.org; Sat, 18 Jul 2020 18:30:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jwrbm-0005rR-II for pgsql-hackers@postgresql.org; Sat, 18 Jul 2020 18:30:56 +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 06IIUhfT4118681; Sat, 18 Jul 2020 14:30:43 -0400 From: Tom Lane To: Jeff Davis cc: Peter Geoghegan , Alvaro Herrera , David Rowley , Stephen Frost , Andres Freund , Bruce Momjian , Robert Haas , Justin Pryzby , Melanie Plageman , Tomas Vondra , "pgsql-hackers@postgresql.org" Subject: Re: Default setting for enable_hashagg_disk In-reply-to: <6d0aba397625df79bdc3ca85adc11b9e48ecb0da.camel@j-davis.com> References: <5cf74833a830e76cc7cc7506aa77bd6ab0c94f4c.camel@j-davis.com> <20200713164736.GA25726@alvherre.pgsql> <9e4a4cffe3eee0543e5b94c90821d39e03b81d29.camel@j-davis.com> <6d0aba397625df79bdc3ca85adc11b9e48ecb0da.camel@j-davis.com> Comments: In-reply-to Jeff Davis message dated "Sat, 18 Jul 2020 11:16:26 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4118679.1595097043.1@sss.pgh.pa.us> Date: Sat, 18 Jul 2020 14:30:43 -0400 Message-ID: <4118680.1595097043@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Jeff Davis writes: > On Fri, 2020-07-17 at 18:38 -0700, Peter Geoghegan wrote: >> There is also the separate question of what to do about the >> hashagg_avoid_disk_plan GUC (this is a separate open item that >> requires a separate resolution). Tom leans slightly towards removing >> it now. Is your position about the same as before? > Yes, I think we should have that GUC (hashagg_avoid_disk_plan) for at > least one release. You'e being optimistic about it being possible to remove a GUC once we ship it. That seems to be a hard sell most of the time. I'm honestly a bit baffled about the level of fear being expressed around this feature. We have *frequently* made changes that would change query plans, perhaps not 100.00% for the better, and never before have we had this kind of bikeshedding about whether it was necessary to be able to turn it off. I think the entire discussion is way out ahead of any field evidence that we need such a knob. In the absence of evidence, our default position ought to be to keep it simple, not to accumulate backwards-compatibility kluges. (The only reason I'm in favor of heap_mem[_multiplier] is that it seems like it might be possible to use it to get *better* plans than before. I do not see it as a backwards-compatibility knob.) regards, tom lane