]> 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:42 +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 f38b42614f0289633e97a8d4208943507c906470..c7fc50c5b82a4f0c640982acc86bbdb6050c3c89 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 8284519df9c61ba07cb7e8ddbdb33b6f0ec664d8..8ff2025a391bed2b06752aee664e879aa598be89 100644 (file)
@@ -1806,8 +1806,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