From 41d2cb823bd0a826ff1adf419a22ee0f83ad1f30 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 31 Mar 2015 20:02:40 -0400 Subject: [PATCH] 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 5bfacb81bd..5ff9c9a90b 100644 --- a/doc/src/sgml/ref/select.sgml +++ b/doc/src/sgml/ref/select.sgml @@ -651,8 +651,8 @@ WINDOW window_name AS ( frame_clause can be one of -[ RANGE | ROWS ] frame_start -[ RANGE | ROWS ] BETWEEN frame_start AND frame_end +{ RANGE | ROWS } frame_start +{ RANGE | ROWS } BETWEEN frame_start AND frame_end where frame_start and frame_end can be diff --git a/doc/src/sgml/syntax.sgml b/doc/src/sgml/syntax.sgml index a328585b5b..d4c16b758c 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 frame_clause can be one of -[ RANGE | ROWS ] frame_start -[ RANGE | ROWS ] BETWEEN frame_start AND frame_end +{ RANGE | ROWS } frame_start +{ RANGE | ROWS } BETWEEN frame_start AND frame_end where frame_start and frame_end can be one of -- 2.40.0