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