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 1k06xQ-0006hT-Lg for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Jul 2020 17:30:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k06xP-0002w1-L0 for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Jul 2020 17:30:35 +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 1k06xP-0002vs-E0 for pgsql-hackers@lists.postgresql.org; Mon, 27 Jul 2020 17:30:35 +0000 Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k06xN-0005sU-1Q for pgsql-hackers@postgresql.org; Mon, 27 Jul 2020 17:30:34 +0000 Received: by mail-qk1-x742.google.com with SMTP id b14so14292203qkn.4 for ; Mon, 27 Jul 2020 10:30:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=j7+BoQoxw2855xVY87Y2ZKwzcIzx/CzOg7xPMmE7bjc=; b=INB514DkKc1SxUhGB8mot0roMPfZ7BM9kF/u9QwtEvMrFaQlc8EM0kADHu6rJTwDzY KS5E1IBfSyk3otHb1zibrhsIWhw4DsdH1MiFDMava1+43yNhd/Sm6smkoeREVAGWpule BOP81kEKPsIKml21j7LxlQOsLxoJNZKIfusi9HrV6xFzhWqQq+iLoUjPiz55PRtlm6oe DusCXmnKkR8ziGD7lE30qPM6/VS87uZjDF1PHbNJr9E8iItI8UTgSK71VtSaQf+sbKo3 VrZQrOGHc0KyePpOEauZlJSGe99mJ59UlqbS5bg6VU4ArerxujzERiDirlbGHtd7tULh AoVA== 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:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=j7+BoQoxw2855xVY87Y2ZKwzcIzx/CzOg7xPMmE7bjc=; b=agAVPJka8RXAVxrH/XOcGTqef7v/9bCsfO2oxRxz9kQ4fIQzEQJA4pdEXPzRZEUVgJ thKHDHUcRJ3wFkvwR9Rbss4JzH+bqpW8/foPMOYWNgYPDKxrcioyz6ws50Wek+MNSLx6 LCX5QKY1567oI8bzSmf3lXpnrPSzc1wdsrDiIJj9LHfrscwGsmbc93EomiSvrzqThwB7 dbasT376Ht4WMAQe+v1YQyT4U/OoghZOegNtd54Z45QSErSdYRtJA+rD9p4mc453Zqcm BE4ZRCSyzIlpDZZC6OA0dbwPLubfDfcTMbUUP3fwk7TPMPh1e5rIrPcLsxAUHPC+t20J tH0A== X-Gm-Message-State: AOAM530GEZljw65kB/EvrK0EEqfR+7hktp7wDBvjTXZ0/ZyCilb6WjGD a0hyLvOpMRxwVDNUB/+T7czbWQ== X-Google-Smtp-Source: ABdhPJyfleCop0MJa66obOskbKBHEo+dZZWtsYOYGJJFdk6mVwuCwZVPc9wO3YbHM/5XjV7ioLyOvw== X-Received: by 2002:a37:4f4a:: with SMTP id d71mr5477976qkb.385.1595871031993; Mon, 27 Jul 2020 10:30:31 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.19.47]) by smtp.gmail.com with ESMTPSA id k5sm18399214qke.18.2020.07.27.10.30.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2020 10:30:31 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 717912A1E6E; Mon, 27 Jul 2020 13:30:29 -0400 (-04) Date: Mon, 27 Jul 2020 13:30:29 -0400 From: Alvaro Herrera To: Peter Geoghegan Cc: Jeff Davis , David Rowley , Stephen Frost , Tom Lane , Andres Freund , Bruce Momjian , Robert Haas , Justin Pryzby , Melanie Plageman , Tomas Vondra , "pgsql-hackers@postgresql.org" Subject: Re: Default setting for enable_hashagg_disk Message-ID: <20200727173029.GA25029@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Jul-23, Peter Geoghegan wrote: > Attached is v3 of the hash_mem_multiplier patch series, which now has > a preparatory patch that removes hashagg_avoid_disk_plan. I notice you put the prototype for get_hash_mem in nodeHash.h. This would be fine if not for the fact that optimizer needs to call the function too, which means now optimizer have to include executor headers -- not a great thing. I'd move the prototype elsewhere to avoid this, and I think miscadmin.h is a decent place for the prototype, next to work_mem and m_w_m. It remains strange to have the function in executor implementation, but I don't offhand see a better place, so maybe it's okay where it is. Other than that admittedly trivial complaint, I found nothing to complain about in this patch. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services