pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Rowley <david.rowley@2ndquadrant.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Rethinking representation of partial-aggregate steps
Date: Sun, 26 Jun 2016 16:28:32 -0400
Message-ID: <16106.1466972912@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKJS1f9=GpUn3eLorCM0XJz3BMaUhmXwC0ZX3Xk4q1=q_AXD4w@mail.gmail.com>
References: <20160623173851.GA203183@alvherre.pgsql>
	<32396.1466704522@sss.pgh.pa.us>
	<CAKJS1f-vriv6hm7oCBXb+NyifwnrGYybVPZtiMwKRdFoECZbuw@mail.gmail.com>
	<1019.1466870211@sss.pgh.pa.us>
	<1473.1466870870@sss.pgh.pa.us>
	<CAKJS1f_Rh6=32CLZobNCbjr7GsBr1vD0BHrY=ZO=sBSdGu3v0g@mail.gmail.com>
	<24924.1466955395@sss.pgh.pa.us>
	<CAKJS1f9=GpUn3eLorCM0XJz3BMaUhmXwC0ZX3Xk4q1=q_AXD4w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

David Rowley <david.rowley@2ndquadrant.com> writes:
> On 27 June 2016 at 03:36, Tom Lane <tgl@sss.pgh.pa.us> 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



view thread (22+ messages)  latest in thread

Message-ID: <16106.1466972912@sss.pgh.pa.us>
Permalink:  ../16106.1466972912@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16106.1466972912@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, david.rowley@2ndquadrant.com, alvherre@2ndquadrant.com, robertmhaas@gmail.com
  Subject: Re: Rethinking representation of partial-aggregate steps
  In-Reply-To: <16106.1466972912@sss.pgh.pa.us>
  References: <20160623173851.GA203183@alvherre.pgsql> <32396.1466704522@sss.pgh.pa.us> <CAKJS1f-vriv6hm7oCBXb+NyifwnrGYybVPZtiMwKRdFoECZbuw@mail.gmail.com> <1019.1466870211@sss.pgh.pa.us> <1473.1466870870@sss.pgh.pa.us> <CAKJS1f_Rh6=32CLZobNCbjr7GsBr1vD0BHrY=ZO=sBSdGu3v0g@mail.gmail.com> <24924.1466955395@sss.pgh.pa.us> <CAKJS1f9=GpUn3eLorCM0XJz3BMaUhmXwC0ZX3Xk4q1=q_AXD4w@mail.gmail.com> <16106.1466972912@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox