Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bHGfY-0004W8-JY for pgsql-hackers@arkaria.postgresql.org; Sun, 26 Jun 2016 20:28:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bHGfX-0002S7-VI for pgsql-hackers@arkaria.postgresql.org; Sun, 26 Jun 2016 20:28:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bHGfX-0002Rs-9l for pgsql-hackers@postgresql.org; Sun, 26 Jun 2016 20:28:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bHGfT-0002qn-Vq for pgsql-hackers@postgresql.org; Sun, 26 Jun 2016 20:28:38 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u5QKSWa8016107; Sun, 26 Jun 2016 16:28:33 -0400 From: Tom Lane To: David Rowley cc: Alvaro Herrera , Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: Rethinking representation of partial-aggregate steps In-reply-to: References: <20160623173851.GA203183@alvherre.pgsql> <32396.1466704522@sss.pgh.pa.us> <1019.1466870211@sss.pgh.pa.us> <1473.1466870870@sss.pgh.pa.us> <24924.1466955395@sss.pgh.pa.us> Comments: In-reply-to David Rowley message dated "Mon, 27 Jun 2016 08:22:38 +1200" Date: Sun, 26 Jun 2016 16:28:32 -0400 Message-ID: <16106.1466972912@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org David Rowley writes: > On 27 June 2016 at 03:36, Tom Lane wrote: >> Looking at this in the light of morning, I'm rather strongly tempted to >> invert the sense of the FINALIZE option, so that "simple" mode works out >> as zero, ie, select no options. Maybe call it SKIPFINAL instead of >> FINALIZE? > Aggref calls this aggpartial, and I was tempted to invert that many > times and make it aggfinalize, but in the end didn't. > It seems nicer to me to keep it as a list of things that are done, > rather than to make one exception to that just so we can have the > simple mode as 0. [ shrug... ] I do not buy that argument, because it doesn't justify the COMBINE option: why shouldn't that be inverted, ie USEFINALFUNC? The only way to decide that except by fiat is to say that we're enumerating the non-default or non-simple-mode behaviors. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers