Re: Windowing Qual Pushdown - Mailing list pgsql-hackers

From Daniel Farina
Subject Re: Windowing Qual Pushdown
Date
Msg-id 7b97c5a41003230946x6338583ar882c5c0df097976a@mail.gmail.com
Whole thread Raw
In response to Re: Windowing Qual Pushdown  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Tue, Mar 23, 2010 at 8:23 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> The real question is what benefit you expect to get.  If the filter
> condition can't be pushed below the window functions (which AFAICS

Even on the partition key?

Right now if you define a view with a windowing + PARTITION BY clause
in it and people write a lot of queries to interrogate one partition
or the other, you end up computing results for the entire relation,
and then filtering all but one partition out, in my understanding.

Since it seems on the surface there is no context sensitivity(?)
between partitions in this kind of a case it would seem a qual
pushdown on the partition key would help rather intensely.

fdr


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Deadlock possibility in _bt_check_unique?
Next
From: Hitoshi Harada
Date:
Subject: Mismatch in libpqwalreceiver