Re: review: More frame options in window functions - Mailing list pgsql-hackers

From Robert Haas
Subject Re: review: More frame options in window functions
Date
Msg-id 603c8f071001221209n52c6696re69b62ad4f99acf7@mail.gmail.com
Whole thread Raw
In response to Re: review: More frame options in window functions  (Hitoshi Harada <umi.tanuki@gmail.com>)
Responses Re: review: More frame options in window functions
List pgsql-hackers
On Tue, Jan 19, 2010 at 3:02 PM, Hitoshi Harada <umi.tanuki@gmail.com> wrote:
> 2010/1/19 Hitoshi Harada <umi.tanuki@gmail.com>:
>> Yeah, that's my point, too. The planner has to distinguish "four" from
>> sort pathkeys and to teach the executor the simple information which
>> column should be used to determine frame. I was bit wrong because some
>> of current executor code isn't like it, like using ordNumCols == 0 to
>> know whether partition equals to frame, though....
>
> And here's another version to fix this problem (I hope). Now the
> planner distinguish sort column from actual significant pathkeys. I
> tested it on both of 32bit and 64bit Linux.

Would it make sense to pull some of the infrastructure bits out of
this patch and commit those bits separately, so as to reduce the size
of the main patch?  In particular, the AggGetMemoryContext() stuff
looks like a good candidate for that treatment.

Why did you change BETWEEN from a TYPE_FUNC_NAME_KEYWORD to a COL_NAME_KEYWORD?

...Robert


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Git out of sync vs. CVS
Next
From: Tom Lane
Date:
Subject: Re: Largeobject Access Controls (r2460)