Fix incorrect markup in documentation of window frame clauses.
authorTom Lane
Wed, 1 Apr 2015 00:02:40 +0000 (20:02 -0400)
committerTom Lane
Wed, 1 Apr 2015 00:02:40 +0000 (20:02 -0400)
You're required to write either RANGE or ROWS to start a frame clause,
but the documentation incorrectly implied this is optional.  Noted by
David Johnston.

doc/src/sgml/ref/select.sgml
doc/src/sgml/syntax.sgml

index 01d24a57c8b4341e89c46798ac082aff69a1b3c6..2295f63c1305a90d873e02895aec7f39b2d06354 100644 (file)
@@ -779,8 +779,8 @@ WINDOW window_name AS ( 
     The frame_clause can be one of
 
 
-[ RANGE | ROWS ] frame_start
-[ RANGE | ROWS ] BETWEEN frame_start AND frame_end
+{ RANGE | ROWS } frame_start
+{ RANGE | ROWS } BETWEEN frame_start AND frame_end
 
 
     where frame_start and frame_end can be
index ff2c3e2b9a371bab67594b89ac3d462503551627..140b3bd12efaf878b743a0a2f5baadc707618104 100644 (file)
@@ -1802,8 +1802,8 @@ FROM generate_series(1,10) AS s(i);
     and the optional frame_clause
     can be one of
 
-[ RANGE | ROWS ] frame_start
-[ RANGE | ROWS ] BETWEEN frame_start AND frame_end
+{ RANGE | ROWS } frame_start
+{ RANGE | ROWS } BETWEEN frame_start AND frame_end
 
     where frame_start and frame_end can be
     one of