Re: Fix a reference error for window functions: In the function 'find_window_functions', the deduplication logic should be removed

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: Fix a reference error for window functions: In the function 'find_window_functions', the deduplication logic should be removed
Дата
Msg-id CAApHDvoqHpVdkkqNTZ-6LG673+yj02-pHJBAQevQgzk=PJcpxg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Fix a reference error for window functions: In the function 'find_window_functions', the deduplication logic should be removed  (David Rowley <dgrowleyml@gmail.com>)
Список pgsql-hackers
On Sun, 25 Jan 2026 at 23:14, David Rowley <dgrowleyml@gmail.com> wrote:
> I came up with the attached for that. I did write the list_uniquify()
> before I realised your fix is ok for master. That function might be
> misplaced just in the backbranches, and it might be better to just
> foreach and if (!list_member()) directly in optimize_window_clauses()
> to get rid of the duplicates. That's probably safer too.

I pushed the deduplication code removal to master and adjusted the
backpatch version to do the foreach -> if (!list_memeber()) as
mentioned above.

David



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