20th September 2018: PostgreSQL 11 Beta 4 Released!

Feature Description

FILTER clause for aggregate functions

Aggregate functions can now be filtered with the FILTER clause. For example: count(col_a) FILTER (WHERE col_b > 5)