Re: [HACKERS] A select with aggretion is failing, still subtle problems with aggregation - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] A select with aggretion is failing, still subtle problems with aggregation
Date
Msg-id 199905101647.MAA07751@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] A select with aggretion is failing, still subtle problems with aggregation  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Is this done?  I have added it to the list.



> Michael J Davis <michael.j.davis@tvguide.com> writes:
> > The following select fails:
> >> select invoiceid + 3 as type, memberid, 1, max(TotShippingHandling) 
> >> from InvoiceLineDetails 
> >> where TotShippingHandling <> 0 
> >> group by type, memberid limit 10;
> > ERROR:  replace_agg_clause: variable not in target list
> 
> Yeah, "GROUP BY" on anything but a primitive column is still pretty
> hosed.  I'm going to try to work on it this weekend.
> 
>             regards, tom lane
> 
> 


--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] Beta2?
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] INSERT INTO