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

Lines changed: 4 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy