Re: Rethinking representation of partial-aggregate steps - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: Rethinking representation of partial-aggregate steps
Date
Msg-id CANP8+jJcxwGifuy+3ojjLOppNC=wSCLf88NLG8DzZA9-Mt_8QA@mail.gmail.com
Whole thread Raw
In response to Re: Rethinking representation of partial-aggregate steps  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On 23 June 2016 at 18:31, Robert Haas <robertmhaas@gmail.com> wrote:

Sure, but aggregating as early as possible will often have the effect
of dramatically reducing the number of tuples that have to pass
through upper levels of the plan tree, which seems it would frequently
far outweigh those considerations. 

Agreed

I can imagine plans where a useful aggregation occurs before every join, so N > 2 is easily possible.

--
Simon Riggs                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

pgsql-hackers by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Bug in to_timestamp().
Next
From: Tom Lane
Date:
Subject: Re: Rethinking representation of partial-aggregate steps