Re: Removing Functionally Dependent GROUP BY Columns

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: David Rowley <david(dot)rowley(at)2ndquadrant(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Removing Functionally Dependent GROUP BY Columns
Date: 2015-12-02 23:50:04
Message-ID: CA+TgmoYwtr5WyGTG6GVE_1d4GA7UvtvbO0GhoTBVVsrCKnZQ7g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Nov 30, 2015 at 11:00 PM, David Rowley
<david(dot)rowley(at)2ndquadrant(dot)com> wrote:
> There are in fact also two queries in TPC-H (Q10 and Q18) which are written
> to include all of the non-aggregated column in the GROUP BY list. During a
> recent test I witnessed a 50% gain in performance in Q10 by removing the
> unneeded columns from the GROUP BY clause.

Wow, that's pretty impressive. +1 for trying to do something about this.

(Full disclosure: I have not read your patch.)

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Craig Ringer 2015-12-03 00:00:03 Re: proposal: add 'waiting for replication' to pg_stat_activity.state
Previous Message Tom Lane 2015-12-02 23:38:15 Re: pgsql: Refactor Perl test code