]> granicus.if.org Git - postgresql/commitdiff
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:03:59 +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 5bfacb81bd435ae4614c228da4416b8831b0e584..5ff9c9a90bd3379019fb5685b51e540b5b85ab0b 100644 (file)
@@ -651,8 +651,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 a328585b5b301fb1e3a305f3abab94be832c0967..d4c16b758ce33f0b11dc7f1ed13078e94d9a310f 100644 (file)
@@ -1725,8 +1725,8 @@ SELECT string_agg(a ORDER BY a, ',') FROM table;  -- incorrect
     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