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:03:55 +0000 (20:03 -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 eb42daae132a6e3e664825483c12e8961b508d62..8d4018b7ff1b4b7d0c6b20159746a1dfa14a0282 100644 (file)
@@ -651,8 +651,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 80d2859ba934379c22499436bfd07e9abe463be2..6e4b244e1050e100c05ff9176addc8c306c721f2 100644 (file)
@@ -1725,8 +1725,8 @@ SELECT string_agg(a ORDER BY a, ',') FROM table;  -- incorrect
     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