Re: [GENERAL] Are multiple array_aggs going to be in the same order?
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: [GENERAL] Are multiple array_aggs going to be in the same order? |
| Дата | |
| Msg-id | 734.1491851980@sss.pgh.pa.us обсуждение |
| Ответ на | Re: [GENERAL] Are multiple array_aggs going to be in the same order? (Paul Jungwirth <pj@illuminatedcomputing.com>) |
| Список | pgsql-general |
Paul Jungwirth <pj@illuminatedcomputing.com> writes:
> On 04/10/2017 11:35 AM, Tom Lane wrote:
>> I'm not very keen on recommending that the OP insert an ORDER BY into
>> each aggregate call, because that would cause a separate sort for each
>> aggregate (unless someone's improved that recently while I wasn't
>> looking).
> I mentioned this in my other email, upon a second look I was misreading
> the EXPLAIN output. (The sort was for the GROUP BY, not the individual
> ORDER BYs.) Do aggregate function sorts even show up in EXPLAIN?
They don't. It's not a plannable behavior, just something that's
hard-wired into nodeAgg.c. I'd like to see that improved someday,
but I don't think it's really high on anyone's priority list.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера