Re: [HACKERS] VIEWS, DISTINCT and COUNT - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] VIEWS, DISTINCT and COUNT
Date
Msg-id 20751.941677126@sss.pgh.pa.us
Whole thread Raw
In response to VIEWS, DISTINCT and COUNT  (Brian Hirt <bhirt@mobygames.com>)
Responses Re: [HACKERS] VIEWS, DISTINCT and COUNT  (wieck@debis.com (Jan Wieck))
List pgsql-hackers
Brian Hirt <bhirt@mobygames.com> writes:
> "select count(distinct id) from table" is not supported.

Yup.  It's on the TODO list:* Allow COUNT(DISTINCT col)

> For both count(distinct) and distinct in views, I have this question:  Is 
> this something that needs to be supported but just never got implemented?

I'm not sure what Jan has in mind for views, but certainly
aggregate(DISTINCT ...) is an SQL-standard feature that we ought to
support.  I don't think it's a simple addition though :-(
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Oliver Elphick"
Date:
Subject: Re: [HACKERS] VIEWS, DISTINCT and COUNT
Next
From: The Hermit Hacker
Date:
Subject: PostgreSQL 6.5.3 built, but not released ...