A cosmetic suggest for 4.2.7. Aggregate Expressions

Started by PG Bug reporting formalmost 8 years ago1 messagesdocs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/10/static/sql-expressions.html
Description:

Documentation for PostgreSQL 10.4
4.2.7. Aggregate Expressions
...
aggregate_name (expression [ , ... ] [ order_by_clause ] ) [ FILTER ( WHERE
filter_clause ) ]
aggregate_name (ALL expression [ , ... ] [ order_by_clause ] ) [ FILTER (
WHERE filter_clause ) ]
...
The first form of aggregate expression invokes the aggregate once for each
input row. The second form is the same as the first, since ALL is the
default.
...

Since both definitions are the same will be better rewrite to
aggregate_name ([ALL ]expression [ , ... ] [ order_by_clause ] ) [ FILTER (
WHERE filter_clause ) ]
to emphasize this.