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 1jv3QC-0004xf-9D for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Jul 2020 18:43:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jv3QB-0002Mx-7X for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Jul 2020 18:43:23 +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 1jv3QB-0002Mq-0q for pgsql-hackers@lists.postgresql.org; Mon, 13 Jul 2020 18:43:23 +0000 Received: from mail-il1-x142.google.com ([2607:f8b0:4864:20::142]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jv3Q8-0006Pa-76 for pgsql-hackers@postgresql.org; Mon, 13 Jul 2020 18:43:22 +0000 Received: by mail-il1-x142.google.com with SMTP id k6so12090802ili.6 for ; Mon, 13 Jul 2020 11:43:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=6Ad57QVltYJTZ5hgpGAAYGzWFGs+jAioYIntA1zkLKA=; b=cU/g3wpBq7+eYbIlKHXEvMuDA+78KFlvGOMNXwTmUjsi3xkHF9CI4rK7Hsp+mEOJAe otJWQc/7L3JvhJLhmFWaQGqOYiWB8llGcfN2TLCAsuCJGkf0BizYb2Ma3jaLRs6dhVHb lpv8NsbXFGfPCileVanbTZNGU0s97ZgWz8JN9HG/1+wtf4rhRfCYX2B3T2GjDP6TpmpE WUUMZ32plJP1DKrKDWDzeqJiWQ3Aj+6RiP+4z+Og0MkPD1Wj7N4taLEys4g0nYmNID4f EiAaiJZYqF+gts+EpSgrZmGP7/+2+5Yzi5As4iZTUSkP6bYIooy7/auGkAqWUBrJoTnN NiGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=6Ad57QVltYJTZ5hgpGAAYGzWFGs+jAioYIntA1zkLKA=; b=k1CKRI1PHuZMFpYYquMxGjzyCmRjY2YzeJ/Ddri+VSBvLK8kfW2WPEI4yynnLNE5z4 VEqBeqnnX7or3CVMKRv2Gah3A9Qasw/gPoMUPThxyq25vbmae/MWMBFLbVOjCqhr68cg kpRJ3QkUg3NU04yPZRtpScvbCjslm7fYX7gFeOhUoQdllB6N28l8aD6VWL90X6B7YIAv 5db8PtDdz5HVl67jHzoFPn0w9n1SoD5LuqUkjwhl3ZU9V1DR0a+6hS0nTtIBHsRvWU3t NGJofSuq5u5goH0Ob0dnTd6yFXgBbMkncctelep60SpoNe7ytAeqhSGRKrzesUMB8lS8 Fuzg== X-Gm-Message-State: AOAM532qOP6j0qOnbS9yGv9w0fM99G588bA0Ft0pBKTrvpL9ddLnu1n+ FVoH7yhZ/llLDMD3JqLUj4GeCw== X-Google-Smtp-Source: ABdhPJyxmDH8TT6H63H/GZycSN8CvZQvRhJsO6c3U0+vkwZONsw5UXUUysG0AS/0NOGfOl5FwUwOng== X-Received: by 2002:a05:6e02:11ae:: with SMTP id 14mr1115175ilj.201.1594665798344; Mon, 13 Jul 2020 11:43:18 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id a24sm8096398ioe.46.2020.07.13.11.43.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Jul 2020 11:43:17 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 4853580015D; Mon, 13 Jul 2020 13:43:16 -0500 (CDT) Date: Mon, 13 Jul 2020 13:43:16 -0500 From: Justin Pryzby To: Alvaro Herrera Cc: Jeff Davis , David Rowley , Stephen Frost , Peter Geoghegan , Tom Lane , Andres Freund , Bruce Momjian , Robert Haas , Melanie Plageman , Tomas Vondra , pgsql-hackers@postgresql.org Subject: Re: Default setting for enable_hashagg_disk Message-ID: <20200713184316.GK23581@telsasoft.com> References: <5cf74833a830e76cc7cc7506aa77bd6ab0c94f4c.camel@j-davis.com> <20200713164736.GA25726@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200713164736.GA25726@alvherre.pgsql> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Jul 13, 2020 at 12:47:36PM -0400, Alvaro Herrera wrote: > On 2020-Jul-13, Jeff Davis wrote: > > > On Tue, 2020-07-14 at 02:25 +1200, David Rowley wrote: > > > Updated summary: > > > * For hash_mem = Tomas [7], Justin [16] > > > * For hash_mem_multiplier with a default > 1.0 = DavidG [21] > > > * For hash_mem_multiplier with default = 1.0 = PeterG [15][0], Tom > > > [20][24] > > > > I am OK with these options, but I still prefer a simple escape hatch. > > I'm in favor of hash_mem_multiplier. I think a >1 default is more > sensible than =1 in the long run, but if strategic vote is what we're > doing, then I support the =1 option. I recanted and support hash_mem_multiplier (or something supporting that behavior, even if it also supports an absolute/scalar value). https://www.postgresql.org/message-id/20200703145620.GK4107@telsasoft.com 1.0 (or -1) is fine, possibly to be >= 1.0 in master at a later date. -- Justin