Re: Windowing Qual Pushdown

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Hitoshi Harada <umi(dot)tanuki(at)gmail(dot)com>
Cc: Daniel Farina <drfarina(at)acm(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Windowing Qual Pushdown
Date: 2010-03-23 15:23:22
Message-ID: 28570.1269357802@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hitoshi Harada <umi(dot)tanuki(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Radovan Jablonovsky 2010-03-23 15:41:01 Opa
Previous Message Hitoshi Harada 2010-03-23 14:01:35 Re: Windowing Qual Pushdown