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 1jtx77-0006d6-Kj for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Jul 2020 17:47: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 1jtx76-0001tK-F6 for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Jul 2020 17:47:08 +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 1jtx75-0001tD-UW for pgsql-hackers@lists.postgresql.org; Fri, 10 Jul 2020 17:47:07 +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 1jtx73-0001qQ-Hx for pgsql-hackers@postgresql.org; Fri, 10 Jul 2020 17:47:06 +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 06AHkvku2107842; Fri, 10 Jul 2020 13:46:57 -0400 From: Tom Lane To: Peter Geoghegan cc: Stephen Frost , Jeff Davis , Alvaro Herrera , Andres Freund , Bruce Momjian , Robert Haas , David Rowley , Justin Pryzby , Melanie Plageman , Tomas Vondra , "pgsql-hackers@postgresql.org" Subject: Re: Default setting for enable_hashagg_disk In-reply-to: References: <85F9F4F0-918A-457F-BC9E-F2AC2EFC1F86@anarazel.de> <20200625225853.GA11137@alvherre.pgsql> <20200708140037.GI3125@tamriel.snowman.net> <99b047386525b87df1e611335c2e57a6cdef346b.camel@j-davis.com> <20200709140330.GO3125@tamriel.snowman.net> <20200709225840.GE12375@tamriel.snowman.net> <20200710000842.GF12375@tamriel.snowman.net> <20200710141714.GI12375@tamriel.snowman.net> Comments: In-reply-to Peter Geoghegan message dated "Fri, 10 Jul 2020 10:26:27 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2107840.1594403217.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 10 Jul 2020 13:46:57 -0400 Message-ID: <2107841.1594403217@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Geoghegan writes: > On Fri, Jul 10, 2020 at 7:17 AM Stephen Frost wrote= : >> Due to the fact that we're in beta and now is not the time to be >> redesigning this feature. > Did you read the discussion? Beta is when we fix problems that testing exposes in new features. Obviously, we'd rather not design new APIs at this point, but if it's the only reasonable way to resolve a problem, that's what we've got to do. I don't think anyone is advocating for reverting the hashagg spill feature, and "do nothing" is not an attractive option either. On the other hand, it's surely too late to engage in any massive redesigns such as some of this thread has speculated about. I looked over Peter's patch in [1], and it seems generally pretty sane to me, though I concur with the idea that it'd be better to define the GUC as a multiplier for work_mem. (For one thing, we could then easily limit it to be at least 1.0, ensuring sanity; also, if work_mem does eventually become more dynamic than it is now, we might still be able to salvage this knob as something useful. Or if not, we just rip it out.) So my vote is for moving in that direction. regards, tom lane [1] https://www.postgresql.org/message-id/CAH2-WzmD%2Bi1pG6rc1%2BCjc4V6EaF= J_qSuKCCHVnH%3DoruqD-zqow%40mail.gmail.com