Re: [HACKERS] Wishlist for next version: group by clause - Mailing list pgsql-hackers

From David Hartwig
Subject Re: [HACKERS] Wishlist for next version: group by clause
Date
Msg-id 3586D537.57ABC1DF@insightdist.com
Whole thread Raw
In response to Re: [HACKERS] Wishlist for next version: group by clause  (De Clarke <de@ucolick.org>)
Responses group by : syntactic example (sybase)
List pgsql-hackers
Do you mean in a select statement?   Such as:

    SELECT func(date) as month, count(*) FROM foo GROUP BY month;

Or even:

    SELECT count(*) FROM foo GROUP BY func(date);

The first is supported.   The second would require some changes to the parser.

De Clarke wrote:

> I didn't realize PG could not do
>
>         group by [function on column]
>
> Ouch!
>




pgsql-hackers by date:

Previous
From: Brett McCormick
Date:
Subject: Re: [HACKERS] seq scan only when function not in subquery (bug?)
Next
From: De Clarke
Date:
Subject: group by : syntactic example (sybase)