Re: Missing optimization when filters are applied after window functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Missing optimization when filters are applied after window functions
Дата
Msg-id 23583.1337174713@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Missing optimization when filters are applied after window functions  (Volker Grabsch <vog@notjusthosting.com>)
Ответы Re: Missing optimization when filters are applied after window functions  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Volker Grabsch <vog@notjusthosting.com> writes:
> I propose the following general optimization: If all window
> functions are partitioned by the same first field (here: id),
> then any filter on that field should be executed before
> WindowAgg.

I'm not sure if that rule is correct in detail, but in any case the
short answer is that window aggregates are a new feature in Postgres
and we basically haven't done any optimization work on them yet.
Feel free to work in that area if it interests you...
        regards, tom lane


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

Предыдущее
От: Florian Pflug
Дата:
Сообщение: Re: Avoiding execution of some functions by query rewriting
Следующее
От: Alvaro Herrera
Дата:
Сообщение: read() returns ERANGE in Mac OS X