Re: [DOCS] Aggregate expression syntax

2015-01-20 Thread David G Johnston
Tom Lane-2 wrote > Thom Brown < > thom@ > > writes: >> Looking at the syntax for aggregate expressions in the docs, it seems the >> first three forms could perhaps be merged since the ALL and DISTINCT >> keywords are effectively optional. > > Dunno, just seems harder to read to me... I'm genera

Re: [DOCS] Aggregate expression syntax

2015-01-20 Thread Tom Lane
Thom Brown writes: > Looking at the syntax for aggregate expressions in the docs, it seems the > first three forms could perhaps be merged since the ALL and DISTINCT > keywords are effectively optional. Dunno, just seems harder to read to me... regards, tom lane -- Sen

[DOCS] Aggregate expression syntax

2015-01-20 Thread Thom Brown
Hi all, Looking at the syntax for aggregate expressions in the docs, it seems the first three forms could perhaps be merged since the ALL and DISTINCT keywords are effectively optional. Currently: aggregate_name (expression [ , ... ] [ order_by_clause ] ) [ FILTER ( WHERE filter_clause ) ] aggre