Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c6ce4c1

Browse files
committed
In docs, clarify that, without ORDER BY, the window frame is all rows in
the partition.
1 parent 5c1b2f5 commit c6ce4c1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/src/sgml/syntax.sgml

+4-3
Original file line numberDiff line numberDiff line change
@@ -1794,9 +1794,10 @@ UNBOUNDED FOLLOWING
17941794
window functions that act on the frame instead of the whole partition.
17951795
The default framing option is <literal>RANGE UNBOUNDED PRECEDING</>,
17961796
which is the same as <literal>RANGE BETWEEN UNBOUNDED PRECEDING AND
1797-
CURRENT ROW</>. This sets the frame to be all rows from the partition start
1798-
up through the current row's last peer as specified by <literal>ORDER BY</>,
1799-
or all partition rows if there is no <literal>ORDER BY</>.
1797+
CURRENT ROW</>. With <literal>ORDER BY</>, this sets the frame to
1798+
be all rows from partition start up through the current row's
1799+
last peer. Without <literal>ORDER BY</>, all partition rows are
1800+
included in the window frame.
18001801
</para>
18011802

18021803
<para>

0 commit comments

Comments
 (0)