diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-03-31 20:02:40 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-03-31 20:03:42 -0400 |
commit | 68a8f26e91a15294024270eb3eed4468dbb307cf (patch) | |
tree | 56c98820e307c3be6def38e38af877ae3be4bce4 | |
parent | 463712390778f7d3e256e52dc4d330266ee4f416 (diff) | |
download | postgresql-68a8f26e91a15294024270eb3eed4468dbb307cf.tar.gz postgresql-68a8f26e91a15294024270eb3eed4468dbb307cf.zip |
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 f38b42614f0..c7fc50c5b82 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 8284519df9c..8ff2025a391 100644 --- a/doc/src/sgml/syntax.sgml +++ b/doc/src/sgml/syntax.sgml @@ -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 |