2008/12/31 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
> No docs or regression tests yet, but it seems to work ... please check
> against Oracle and DB2 behavior. Supported cases are
> RANGE UNBOUNDED PRECEDING -- same as AND CURRENT ROW
> ROWS UNBOUNDED PRECEDING -- same as AND CURRENT ROW
Is this true?
I guess that the 7.11 rule 5.b in the spec says as far as the bound is
not specified in the window frame clause, all rows of the partition
are contained in the frame. The rule then removes rows from the
initial frame as the frame bound indicates.
So as the result,
RANGE UNBOUNDED PRECEDING
ROWS UNBOUNDED PRECEDING
(RANGE / ROWS) BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
if I don't miss something.
In response to
pgsql-hackers by date
|Next:||From: Tom Lane||Date: 2009-01-05 00:34:53|
|Subject: Re: WIP patch for basic window frame support |
|Previous:||From: Tom Lane||Date: 2009-01-04 23:37:08|
|Subject: Re: generic reloptions improvement |