Re: [HACKERS] A select with aggretion is failing, still subtle problems with aggregation

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael J Davis <michael(dot)j(dot)davis(at)tvguide(dot)com>
Cc: hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] A select with aggretion is failing, still subtle problems with aggregation
Date: 1999-05-01 15:39:10
Message-ID: 1343.925573150@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Michael J Davis <michael(dot)j(dot)davis(at)tvguide(dot)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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Vadim Mikheev 1999-05-01 16:16:07 Re: [HACKERS] A patch for FATAL 1:btree: BTP_CHAIN flag was expected
Previous Message Vadim Mikheev 1999-05-01 15:23:28 I'm planning some changes in lmgr...