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

From Edmund Mergl
Subject Re: [HACKERS] 6.4 Aggregate Bug
Date
Msg-id 35C3206A.C757D375@bawue.de
Whole thread Raw
In response to 6.4 Aggregate Bug  (David Hartwig <daybee@bellatlantic.net>)
List pgsql-hackers
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).

Edmund
--
Edmund Mergl          mailto:E.Mergl@bawue.de
Im Haldenhau 9        http://www.bawue.de/~mergl
70565 Stuttgart       fon: +49 711 747503
Germany

pgsql-hackers by date:

Previous
From: David Hartwig
Date:
Subject: 6.4 Aggregate Bug
Next
From: "Thomas G. Lockhart"
Date:
Subject: Re: [HACKERS] 6.4 Aggregate Bug