[COMMITTERS] pgsql: Repair breakage of aggregate FILTER option.

2017-10-16 Thread Tom Lane
Repair breakage of aggregate FILTER option. An aggregate's input expression(s) are not supposed to be evaluated at all for a row where its FILTER test fails ... but commit 8ed3f11bb overlooked that requirement. Reshuffle so that aggregates having a filter clause evaluate their arguments separatel

[COMMITTERS] pgsql: Repair breakage of aggregate FILTER option.

2017-10-16 Thread Tom Lane
Repair breakage of aggregate FILTER option. An aggregate's input expression(s) are not supposed to be evaluated at all for a row where its FILTER test fails ... but commit 8ed3f11bb overlooked that requirement. Reshuffle so that aggregates having a filter clause evaluate their arguments separatel