Re: Removing Functionally Dependent GROUP BY Columns - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Removing Functionally Dependent GROUP BY Columns
Date
Msg-id CA+TgmoYwtr5WyGTG6GVE_1d4GA7UvtvbO0GhoTBVVsrCKnZQ7g@mail.gmail.com
Whole thread Raw
In response to Removing Functionally Dependent GROUP BY Columns  (David Rowley <david.rowley@2ndquadrant.com>)
List pgsql-hackers
On Mon, Nov 30, 2015 at 11:00 PM, David Rowley
<david.rowley@2ndquadrant.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



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Fwd: Another little thing about psql wrapped expanded output
Next
From: Craig Ringer
Date:
Subject: Re: proposal: add 'waiting for replication' to pg_stat_activity.state