In docs, clarify that, without ORDER BY, the window frame is all rows in
authorBruce Momjian
Thu, 16 Aug 2012 15:32:22 +0000 (11:32 -0400)
committerBruce Momjian
Thu, 16 Aug 2012 15:32:22 +0000 (11:32 -0400)
the partition.

doc/src/sgml/syntax.sgml

index a01f9b5fc4eb7e90a5f119b7b4428ba3326101fc..067c31b2d87dbdae43bbb427ef5fae802b4d3fc9 100644 (file)
@@ -1794,9 +1794,10 @@ UNBOUNDED FOLLOWING
     window functions that act on the frame instead of the whole partition.
     The default framing option is RANGE UNBOUNDED PRECEDING,
     which is the same as RANGE BETWEEN UNBOUNDED PRECEDING AND
-    CURRENT ROW.  This sets the frame to be all rows from the partition start
-    up through the current row's last peer as specified by ORDER BY,
-    or all partition rows if there is no ORDER BY.
+    CURRENT ROW.  With ORDER BY, this sets the frame to
+    be all rows from partition start up through the current row's
+    last peer.  Without ORDER BY, all partition rows are
+    included in the window frame.