postgres.git / summary / log / commit / refs

commit    f6caf5acf1def92d7425151a92fd990c566fdcc3
Author:   Tom Lane <tgl@sss.pgh.pa.us>
Date:     Wed Apr 01 00:02:40 2015 +0000
First released in: 9.5.0, 9.0.20, 9.1.16, 9.2.11, 9.3.7, 9.4.2

    Fix incorrect markup in documentation of window frame clauses.
    
    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 | 4 ++-- doc/src/sgml/syntax.sgml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/src/sgml/ref/select.sgml b/doc/src/sgml/ref/select.sgml index 01d24a57c8b..2295f63c130 100644 --- a/doc/src/sgml/ref/select.sgml +++ b/doc/src/sgml/ref/select.sgml @@ -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 diff --git a/doc/src/sgml/syntax.sgml b/doc/src/sgml/syntax.sgml index ff2c3e2b9a3..140b3bd12ef 100644 --- a/doc/src/sgml/syntax.sgml +++ b/doc/src/sgml/syntax.sgml @@ -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 [parent: 7a245bfe7612]