Re: [HACKERS] SUM() and GROUP BY - Mailing list pgsql-hackers

From D'Arcy" "J.M." Cain
Subject Re: [HACKERS] SUM() and GROUP BY
Date
Msg-id m100kAR-0000bpC@druid.net
Whole thread Raw
In response to Re: [HACKERS] SUM() and GROUP BY  ("Thomas G. Lockhart" <lockhart@alumni.caltech.edu>)
List pgsql-hackers
Thus spake Thomas G. Lockhart
> > So, again I agree with D'Arcy.
> 
> I'm missing something. Is there another issue for GROUP BY for which we
> don't have a consensus? An aggregate on an entire column can return
> NULL, and aggregates on columns with GROUP BY columns of NULL should
> not.

Well, I still think that an aggregate on a whole column when no rows
are selected (None exist or WHERE clause deselects everything) should
return 0 rows, not NULL but the above would be better than what happens
now.

-- 
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 424 2871     (DoD#0082)    (eNTP)   |  what's for dinner.


pgsql-hackers by date:

Previous
From: "Thomas G. Lockhart"
Date:
Subject: Re: [HACKERS] postgres and year 2000
Next
From: jwieck@debis.com (Jan Wieck)
Date:
Subject: Re: [HACKERS] CONSTRAINTS...