Re: [HACKERS] VIEWS, DISTINCT and COUNT

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] VIEWS, DISTINCT and COUNT
Дата
Msg-id 20751.941677126@sss.pgh.pa.us
обсуждение исходный текст
Ответ на VIEWS, DISTINCT and COUNT  (Brian Hirt <bhirt@mobygames.com>)
Ответы Re: [HACKERS] VIEWS, DISTINCT and COUNT  (wieck@debis.com (Jan Wieck))
Список 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 по дате отправления:

Предыдущее
От: "Oliver Elphick"
Дата:
Сообщение: Re: [HACKERS] VIEWS, DISTINCT and COUNT
Следующее
От: The Hermit Hacker
Дата:
Сообщение: PostgreSQL 6.5.3 built, but not released ...