diff options
author | Tom Lane | 2015-04-01 00:02:40 +0000 |
---|---|---|
committer | Tom Lane | 2015-04-01 00:03:59 +0000 |
commit | 41d2cb823bd0a826ff1adf419a22ee0f83ad1f30 (patch) | |
tree | 2c6ea5ec3acf1c63b08cea288507410e27af8760 | |
parent | d6a892e1e60be36975d6768e39e50cd970840ecd (diff) |
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.
-rw-r--r-- | doc/src/sgml/ref/select.sgml | 4 | ||||
-rw-r--r-- | 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 5bfacb81bd4..5ff9c9a90bd 100644 --- a/doc/src/sgml/ref/select.sgml +++ b/doc/src/sgml/ref/select.sgml @@ -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 diff --git a/doc/src/sgml/syntax.sgml b/doc/src/sgml/syntax.sgml index a328585b5b3..d4c16b758ce 100644 --- a/doc/src/sgml/syntax.sgml +++ b/doc/src/sgml/syntax.sgml @@ -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 |