Re: [HACKERS] 6.4 Aggregate Bug - Mailing list pgsql-hackers

From David Hartwig
Subject Re: [HACKERS] 6.4 Aggregate Bug
Date
Msg-id 35C36D42.FD2168FF@bellatlantic.net
Whole thread Raw
In response to 6.4 Aggregate Bug  (David Hartwig <daybee@bellatlantic.net>)
List pgsql-hackers
Edmund Mergl wrote:

> David Hartwig wrote:
> >
> > While testing  my 6.4 patch to allow functions/expressions to be
> > specified in the ORDER/GROUP BY  clause (and not in the target list)  I
>
> will this patch allow the following syntax :
>
>   select count(SUBSTR(var,1,5)), SUBSTR(var,1,5) from t group by SUBSTR(var,1,5);
>
> This is important for writing database-independent code (e.g. it's the only
> syntax Oracle understands).
>
>

YES.  It also handles expressions like "x / 2".     Also, the functions (or
expressions) need not be in the target list.


pgsql-hackers by date:

Previous
From: Oleg Bartunov
Date:
Subject: MULTIBYE typo ?
Next
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] Problem with CVS access to current sources