1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Doc: update documentation for requirement of ORDER BY in GROUPS mode.

Commit ff4f88916 adjusted the code to enforce the SQL spec's requirement
that a window using GROUPS mode must have an ORDER BY clause.  But I missed
that the documentation explicitly said you didn't have to have one.

Also minor wordsmithing in the window-function section of select.sgml.

Per Masahiko Sawada, though I didn't use his patch.
This commit is contained in:
Tom Lane
2018-07-12 11:10:24 -04:00
parent 8e599897ca
commit e0cd0ea4f9
2 changed files with 5 additions and 5 deletions

View File

@ -1917,8 +1917,8 @@ EXCLUDE NO OTHERS
ends the specified number of <firstterm>peer groups</firstterm>
before or after the current row's peer group, where a peer group is a
set of rows that are equivalent in the <literal>ORDER BY</literal>
ordering. (If there is no <literal>ORDER BY</literal>, the whole
partition is one peer group.)
ordering. (There must be an <literal>ORDER BY</literal> clause
in the window definition to use <literal>GROUPS</literal> mode.)
</para>
</listitem>
<listitem>