Clarify note about DISTINCT and ORDER BY in aggregates

Поиск
Список
Период
Сортировка
От Vik Fearing
Тема Clarify note about DISTINCT and ORDER BY in aggregates
Дата
Msg-id 8e9e35a2-5f15-cb26-f473-fc590867a9f5@postgresfriends.org
обсуждение исходный текст
Ответы Re: Clarify note about DISTINCT and ORDER BY in aggregates  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-docs
The current docs can be read as using DISTINCT in an aggregate 
(count(distinct col)) and ORDER BY (array_agg(col ORDER BY col)) are 
both extensions to the standard.

The actual truth is that our extension to the standard is to allow both 
at the same time.

Attached is a trivial patch to make that more clear.  I don't know if 
pgindent works on the docs so I made this so as to show what is 
changing.  I can submit a properly formatted patch, or let the eventual 
committer make that change if necessary.
-- 
Vik Fearing
Вложения

В списке pgsql-docs по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: nextval parameter is not clear
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: nextval parameter is not clear