Re: Adding a ROLLUP switches to GroupAggregate unexpectedly

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Chris Cogdon <chris(at)cogdon(dot)org>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Adding a ROLLUP switches to GroupAggregate unexpectedly
Date: 2016-03-31 18:56:48
Message-ID: 19774.1459450608@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Chris Cogdon <chris(at)cogdon(dot)org> writes:
> Hi folks! Ive a query where adding a rollup to the group by switches to
> GroupAggregate unexpectedly, where the standard GROUP BY uses
> HashAggregate.

The current implementation of rollup doesn't support using hashed
aggregation. I don't know if that's for lack of round tuits or because
it's actually hard, but it's not the planner's fault.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message ktm@rice.edu 2016-03-31 19:08:03 Re: Adding a ROLLUP switches to GroupAggregate unexpectedly
Previous Message Chris Cogdon 2016-03-31 17:03:27 Adding a ROLLUP switches to GroupAggregate unexpectedly