| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера