Fix incorrect markup in documentation of window frame clauses.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 1 Apr 2015 00:02:40 +0000 (20:02 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
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 <replaceable class="parameter">window_name</replaceable> AS ( <replaceabl
     The <replaceable class="parameter">frame_clause</> can be one of
 
 <synopsis>
-[ RANGE | ROWS ] <replaceable>frame_start</>
-[ RANGE | ROWS ] BETWEEN <replaceable>frame_start</> AND <replaceable>frame_end</>
+{ RANGE | ROWS } <replaceable>frame_start</>
+{ RANGE | ROWS } BETWEEN <replaceable>frame_start</> AND <replaceable>frame_end</>
 </synopsis>
 
     where <replaceable>frame_start</> and <replaceable>frame_end</> can be
index ff2c3e2b9a371bab67594b89ac3d462503551627..140b3bd12efaf878b743a0a2f5baadc707618104 100644 (file)
@@ -1802,8 +1802,8 @@ FROM generate_series(1,10) AS s(i);
     and the optional <replaceable class="parameter">frame_clause</replaceable>
     can be one of
 <synopsis>
-[ RANGE | ROWS ] <replaceable>frame_start</>
-[ RANGE | ROWS ] BETWEEN <replaceable>frame_start</> AND <replaceable>frame_end</>
+{ RANGE | ROWS } <replaceable>frame_start</>
+{ RANGE | ROWS } BETWEEN <replaceable>frame_start</> AND <replaceable>frame_end</>
 </synopsis>
     where <replaceable>frame_start</> and <replaceable>frame_end</> can be
     one of