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 1k0DCm-0003rI-75 for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Jul 2020 00:10:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k0DCl-0007t4-5U for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Jul 2020 00:10:51 +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 1k0DCk-0007sZ-QY for pgsql-hackers@lists.postgresql.org; Tue, 28 Jul 2020 00:10:50 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k0DCg-0000oc-RU for pgsql-hackers@postgresql.org; Tue, 28 Jul 2020 00:10:49 +0000 Received: by mail-pg1-x542.google.com with SMTP id z5so10892702pgb.6 for ; Mon, 27 Jul 2020 17:10:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=+hDNmGks1bqWCQtMrUe4Unvb6dzfCogR1cf3tt3x3oI=; b=m0Xf9ileIV8pWYls9LR/fSzii67mEDv8bZuRDBPXBWLXpRBn9v6RStVQS2vQ9OtWNQ vNZ9grYuzq6NbVNzyw5rYUTw/IjSXYXCnXF/3lT2A+SPT5wSBY4ge8EKlpP+3jK+oZw/ PdH5zH7D2rgDV4zAl8BK0Qytc4kQvqFxq+LhLKewaoprVxH6HS0KDAdcWzRr/8gMgtDu Oe8SyUgOXfANDtd/5I1nNLNZksmUP/vHdOo/ls2KIBqAiq4AnNMbZfMy1xSCy5ktykY0 N5nagdh1Mu4J86JBfyKBa6oKrus+yPyTe277kcXXmkZRFmhF3hLgGFlv4E2u1x9csZHK Idyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=+hDNmGks1bqWCQtMrUe4Unvb6dzfCogR1cf3tt3x3oI=; b=NdHtfLAR2brRmIa3PsE4eY35250j8qpVQYpUbSQ0wGr5qI7Ab+9Mg6GoUh3y1PbY14 FZDP/rlNCeizaSY0HrG/0Yiw4L0cHrK1iGazzsVKGNxvy39HUxp+SRvLNdkTyVVW0qhm cj86gqP6tagyoWYv0K9Tt5dff+cLPLhJXR4Gh646UxP+xm2pTVZhnqzIPvcMi6CFhfhu 5nS41MXjeEjygqzNQd+NetJCRSMqht2whP5qK102F1aKS13QDwb6+CZBjnAjdGYbWM4R ZD20f/iggz4pgxnC5S5O2Br6dPuihlVvSyLJrA4l4/BxKz9nKvmqQrMueiI8OmEkycVs eK/g== X-Gm-Message-State: AOAM531E/J4PCZAQKZx2hW8kcW7FUS56AsfHZrRgFkoS6kawGCIRGSDm 8+GVnqko+AWopqpdKWlEwhD6TQ== X-Google-Smtp-Source: ABdhPJxaKf7AjODQImsg7ETCB4D58lWgfCAg9nrj2JzL+dy5c4iDy6vGM4JcCsMEXb24Woe5hS/N0Q== X-Received: by 2002:a63:541e:: with SMTP id i30mr22410061pgb.47.1595895045211; Mon, 27 Jul 2020 17:10:45 -0700 (PDT) Received: from jdavis.lan (c-73-231-146-4.hsd1.ca.comcast.net. [73.231.146.4]) by smtp.gmail.com with ESMTPSA id y8sm730919pjj.17.2020.07.27.17.10.42 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Jul 2020 17:10:44 -0700 (PDT) Message-ID: <75b987c43ea03900f83e3612f43e2ffc841db553.camel@j-davis.com> Subject: Re: Default setting for enable_hashagg_disk From: Jeff Davis To: Peter Geoghegan , Alvaro Herrera Cc: David Rowley , Stephen Frost , Tom Lane , Andres Freund , Bruce Momjian , Robert Haas , Justin Pryzby , Melanie Plageman , Tomas Vondra , "pgsql-hackers@postgresql.org" Date: Mon, 27 Jul 2020 17:10:41 -0700 In-Reply-To: References: <20200727182436.GA20148@alvherre.pgsql> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, 2020-07-27 at 11:30 -0700, Peter Geoghegan wrote: > The v4-0001-Remove-hashagg_avoid_disk_plan-GUC.patch changes are > surprisingly complicated. It would be nice if you could take a look > at > that aspect (or confirm that it's included in your review). I noticed that one of the conditionals, "cheapest_total_path != NULL", was already redundant with the outer conditional before your patch. I guess that was just a mistake which your patch corrects along the way? Anyway, the patch looks good to me. We can have a separate discussion about pessimizing the costing, if necessary. Regards, Jeff Davis