Re: Windowing Qual Pushdown

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Windowing Qual Pushdown
Дата
Msg-id 28570.1269357802@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Windowing Qual Pushdown  (Hitoshi Harada <umi.tanuki@gmail.com>)
Ответы Re: Windowing Qual Pushdown  (Daniel Farina <drfarina@acm.org>)
Список pgsql-hackers
Hitoshi Harada <umi.tanuki@gmail.com> writes:
> I believe the changes will probably not be 2-3 lines (ie. a member
> added to Query structure, etc) if I try it. But the optimizer part is
> too complicated to me so that I am not sure, either. My idea above is
> that the similar mechanism you see in GROUP BY optimization will help
> you and the issue is not so particular about window functions.

The real question is what benefit you expect to get.  If the filter
condition can't be pushed below the window functions (which AFAICS it
can't without changing the results) then there is really nothing to be
gained compared to leaving it in the outer query level.
        regards, tom lane


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

Предыдущее
От: Hitoshi Harada
Дата:
Сообщение: Re: Windowing Qual Pushdown
Следующее
От: Radovan Jablonovsky
Дата:
Сообщение: Opa