Re: [HACKERS] VIEWS, DISTINCT and COUNT

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: bhirt(at)mobygames(dot)com
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] VIEWS, DISTINCT and COUNT
Date: 1999-11-04 00:58:46
Message-ID: 20751.941677126@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Brian Hirt <bhirt(at)mobygames(dot)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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 1999-11-04 01:50:09 PostgreSQL 6.5.3 built, but not released ...
Previous Message Oliver Elphick 1999-11-04 00:52:44 Re: [HACKERS] VIEWS, DISTINCT and COUNT