Re: pg16: XX000: could not find pathkey item to sort

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: pg16: XX000: could not find pathkey item to sort
Дата
Msg-id CAApHDvr4Te8EbPDnYfHPAxRnuwMdojavUR=Prejm5AphBq41dg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pg16: XX000: could not find pathkey item to sort  (Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>)
Ответы Re: pg16: XX000: could not find pathkey item to sort  (Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>)
Список pgsql-hackers
On Thu, 14 Mar 2024 at 18:23, Ashutosh Bapat
<ashutosh.bapat.oss@gmail.com> wrote:
> I don't understand why root->query_pathkeys has both a and b. "a" is there because of GROUP BY and ORDER BY clause.
Butwhy "b"?
 

So that the ORDER BY aggregate function can be evaluated without
nodeAgg.c having to perform the sort. See
adjust_group_pathkeys_for_groupagg().

David



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Make attstattarget nullable
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: Have pg_basebackup write "dbname" in "primary_conninfo"?