Skip to content
Snippets Groups Projects
Commit 993674e8 authored by Tom Lane's avatar Tom Lane
Browse files

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.
parent 71b36896
No related branches found
No related tags found
No related merge requests found
...@@ -651,8 +651,8 @@ WINDOW <replaceable class="parameter">window_name</replaceable> AS ( <replaceabl ...@@ -651,8 +651,8 @@ WINDOW <replaceable class="parameter">window_name</replaceable> AS ( <replaceabl
The <replaceable class="parameter">frame_clause</> can be one of The <replaceable class="parameter">frame_clause</> can be one of
<synopsis> <synopsis>
[ RANGE | ROWS ] <replaceable>frame_start</> { RANGE | ROWS } <replaceable>frame_start</>
[ RANGE | ROWS ] BETWEEN <replaceable>frame_start</> AND <replaceable>frame_end</> { RANGE | ROWS } BETWEEN <replaceable>frame_start</> AND <replaceable>frame_end</>
</synopsis> </synopsis>
where <replaceable>frame_start</> and <replaceable>frame_end</> can be where <replaceable>frame_start</> and <replaceable>frame_end</> can be
......
...@@ -1725,8 +1725,8 @@ SELECT string_agg(a ORDER BY a, ',') FROM table; -- incorrect ...@@ -1725,8 +1725,8 @@ SELECT string_agg(a ORDER BY a, ',') FROM table; -- incorrect
and the optional <replaceable class="parameter">frame_clause</replaceable> and the optional <replaceable class="parameter">frame_clause</replaceable>
can be one of can be one of
<synopsis> <synopsis>
[ RANGE | ROWS ] <replaceable>frame_start</> { RANGE | ROWS } <replaceable>frame_start</>
[ RANGE | ROWS ] BETWEEN <replaceable>frame_start</> AND <replaceable>frame_end</> { RANGE | ROWS } BETWEEN <replaceable>frame_start</> AND <replaceable>frame_end</>
</synopsis> </synopsis>
where <replaceable>frame_start</> and <replaceable>frame_end</> can be where <replaceable>frame_start</> and <replaceable>frame_end</> can be
one of one of
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment