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 1kWzvf-0006Ab-JX for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Oct 2020 10:40:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kWzv7-00089c-PK for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Oct 2020 10:40:09 +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 <9erthalion6@gmail.com>) id 1kWzv7-00089V-GM for pgsql-hackers@lists.postgresql.org; Mon, 26 Oct 2020 10:40:09 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <9erthalion6@gmail.com>) id 1kWzv4-0003he-K4 for pgsql-hackers@lists.postgresql.org; Mon, 26 Oct 2020 10:40:08 +0000 Received: by mail-wr1-x442.google.com with SMTP id t9so11793401wrq.11 for ; Mon, 26 Oct 2020 03:40:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=57gjl6F6PP7lwy3HDZvz+4wm83SY8bR19qSDMKn63sY=; b=AtK6X/fyj0/RK/OomCQxo4dCw4zya+yIr0HyfQhEdSuMu3xs3QFf6C82sUPWfnk30T uOSYYtY7mB56J+6JZEQHTcrq/FVNyOdloqPTui7jhHJBnfuyH4/vifpfM0F2XkZX2x7m Sp/bO43+qh1KPjoE/QTFevhO0BXzM+MU+Z5DYNN4KK29KDibwxCLZghh4pYphdaSRMDu P/LIqGqUdHRXebOOn12zQScIKImsDSzC/3fG+5tJx7kmdprZYrOWmzOyglo20tj5sh5e UZzJ49qutIRZEtR0Jl+H5TuzQ3psszMM2LC8bC6FSOBUwDzRD6h7Qnn+tI1LgU4gQ3Fq Lm8g== 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; bh=57gjl6F6PP7lwy3HDZvz+4wm83SY8bR19qSDMKn63sY=; b=QrgkoxPXqOWqbLD/MMDGwkMavYm11YD4Owjjc7O0+l8MA7d7D6ZN0a2lgGPW5umlym fvRzUB7p4oVUk3FVPU4ehDr420OfgUKQ7H5xL1ujuFyVszFhYfUGERIguC40wsF03eNI H/b0VTtT31GabBzxKDJzA3Z98YtbtGMJzbGbtOhS5IB4FmfkNjeHIYnSfR/srQce+6yi 1sfdQBMBfC3U9SjnnOmzeEVkHFOT0U9DX2jtE6jwQsfcVVnEiAr0WpSh1Fj/GzPjqWiW BOLOMudT+ELyb4eNK1MkDA3cYxu2zZdiHTlu371WElQjX6oWwVema3NnYXKeRZ1Zo1Rz Ga1w== X-Gm-Message-State: AOAM530pjm/S5O6VcK/A/RBqnb2BisqEUECjWspixSpAeXuoJngAB9RI Ixb55dfaMqKWeg90HljX8Bo= X-Google-Smtp-Source: ABdhPJwyZzYE3nIvPJel5UzWZsaKSrCwNSRyvFM3ADAZMy4rZUBS5/qvDoMbyPodDklpdMTfdH2eGw== X-Received: by 2002:adf:bbd2:: with SMTP id z18mr18013474wrg.166.1603708803485; Mon, 26 Oct 2020 03:40:03 -0700 (PDT) Received: from localhost (dslb-178-005-232-008.178.005.pools.vodafone-ip.de. [178.5.232.8]) by smtp.gmail.com with ESMTPSA id q7sm21564305wrr.39.2020.10.26.03.40.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Oct 2020 03:40:02 -0700 (PDT) Date: Mon, 26 Oct 2020 11:40:40 +0100 From: Dmitry Dolgov <9erthalion6@gmail.com> To: Pavel Borisov Cc: Tomas Vondra , Teodor Sigaev , Gavin Flower , Andres Freund , Michael Paquier , PostgreSQL Developers Subject: Re: POC: GROUP BY optimization Message-ID: <20201026104040.6bigvej6f55vjvgp@localhost> References: <20190409152100.5q25whnxs27zws5m@development> <20190503215510.bcr5ycszntqg65tw@development> <20190524225725.embuha33qvc5avz3@development> <20200514235220.xewrrwjvatxzn3g6@development> <20201026085721.g6h5xljxvodnmk34@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Mon, Oct 26, 2020 at 01:28:59PM +0400, Pavel Borisov wrote: > > Thanks for your interest! FYI there is a new thread about this topic [1] > > with the next version of the patch and more commentaries (I've created > > it for visibility purposes, but probably it also created some confusion, > > sorry for that). > > > > Thanks! > > I made a very quick look at your updates and noticed that it is intended to > be simple and some parts of the code are removed as they have little test > coverage. I'd propose vice versa to increase test coverage to enjoy more > precise cost calculation and probably partial grouping. > > Or maybe it's worth to benchmark both patches and then re-decide what we > want more to have a more complicated or a simpler version. > > Good to know that this feature is not stuck anymore and we have more than > one proposal. > Thanks! Just to clarify, the patch that I've posted in another thread mentioned above is not an alternative proposal, but a development of the same patch I had posted in this thread. As mentioned in [1], reduce of functionality is an attempt to reduce the scope, and as soon as the base functionality looks good enough it will be returned back. [1]: https://www.postgresql.org/message-id/flat/CA%2Bq6zcW_4o2NC0zutLkOJPsFt80megSpX_dVRo6GK9PC-Jx_Ag%40mail.gmail.com