Re: Additional select fields in a GROUP BY - Mailing list pgsql-performance

From Tom Lane
Subject Re: Additional select fields in a GROUP BY
Date
Msg-id 21366.1087097995@sss.pgh.pa.us
Whole thread Raw
In response to Additional select fields in a GROUP BY  (Vitaly Belman <vitalib@012.net.il>)
List pgsql-performance
Vitaly Belman <vitalib@012.net.il> writes:
> The problem is that addind them all to GROUP BY causes a performance
> loss.

Really?  I'd think that there'd be no visible loss if the earlier
fields of the GROUP BY are already unique.  The sort comparison
should stop at the first field that determines the sort order.
Can you provide a self-contained example?

            regards, tom lane

pgsql-performance by date:

Previous
From: Vitaly Belman
Date:
Subject: Additional select fields in a GROUP BY
Next
From: Bruno Wolff III
Date:
Subject: Re: Additional select fields in a GROUP BY