Re: AW: [HACKERS] 6.4 Aggregate Bug

From: David Hartwig <daveh(at)insightdist(dot)com>
To: Andreas Zeugswetter <andreas(dot)zeugswetter(at)telecom(dot)at>
Cc: "'hackers(at)postgresql(dot)org'" <hackers(at)postgreSQL(dot)org>
Subject: Re: AW: [HACKERS] 6.4 Aggregate Bug
Date: 1998-08-24 13:42:53
Message-ID: 35E16DDD.AE987DC0@insightdist.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andreas Zeugswetter wrote:

> >
> > select func(x), aggfunc(y) group by func
> > CRASHES
> >
>
> I think this should be disallowed syntax. Note that func is a system generated label
> in this case, that's probably why the parser does not complain. The syntax has to be:
>
> select func(x), aggfunc(y) group by func(x); -- or
>
> select func(x) as func, aggfunc(y) group by func;
>

To my knowledge postgres has always allowed this syntax. IMO is seems harmless to
continue. In any case, all of these syntax permutations will crash the backend in using
6.4.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Hartwig 1998-08-24 14:05:51 Current snapshot
Previous Message Andreas Zeugswetter 1998-08-24 13:00:51 AW: [HACKERS] 6.4 Aggregate Bug