Commit c6ce4c13 authored by Bruce Momjian's avatar Bruce Momjian

In docs, clarify that, without ORDER BY, the window frame is all rows in

the partition.
parent 5c1b2f5d
...@@ -1794,9 +1794,10 @@ UNBOUNDED FOLLOWING ...@@ -1794,9 +1794,10 @@ UNBOUNDED FOLLOWING
window functions that act on the frame instead of the whole partition. window functions that act on the frame instead of the whole partition.
The default framing option is <literal>RANGE UNBOUNDED PRECEDING</>, The default framing option is <literal>RANGE UNBOUNDED PRECEDING</>,
which is the same as <literal>RANGE BETWEEN UNBOUNDED PRECEDING AND which is the same as <literal>RANGE BETWEEN UNBOUNDED PRECEDING AND
CURRENT ROW</>. This sets the frame to be all rows from the partition start CURRENT ROW</>. With <literal>ORDER BY</>, this sets the frame to
up through the current row's last peer as specified by <literal>ORDER BY</>, be all rows from partition start up through the current row's
or all partition rows if there is no <literal>ORDER BY</>. last peer. Without <literal>ORDER BY</>, all partition rows are
included in the window frame.
</para> </para>
<para> <para>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment