Accidental use of the PVC_RECURSE_WINDOWFUNCS flag?

Поиск
Список
Период
Сортировка
От Antonin Houska
Тема Accidental use of the PVC_RECURSE_WINDOWFUNCS flag?
Дата
Msg-id 31465.1588171520@antos
обсуждение исходный текст
Ответы Re: Accidental use of the PVC_RECURSE_WINDOWFUNCS flag?
Список pgsql-hackers
I think that the PVC_RECURSE_WINDOWFUNCS flag shouldn't be used in
make_partial_grouping_target().

First, this function uses the grouping_target (see grouping_planner()) as the
input, and that should only contain the input expressions of window functions
as opposed to the window functions themselves. (make_window_input_target() is
responsible for pulling the input expressions from the window functions.)

Second, if a window function appeared in the result of
make_partial_grouping_target() for any reason, the Agg node would fail to
evaluate it. Am I wrong?

-- 
Antonin Houska
Web: https://www.cybertec-postgresql.com


Вложения

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

Предыдущее
От: "Jonah H. Harris"
Дата:
Сообщение: Re: Proposing WITH ITERATIVE
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: Binary search in ScalarArrayOpExpr for OR'd constant arrays