Avoid making a separate pass over the query to check for partializability.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: f1993038a4f0ce5fbeb7b562b2acd571bf6b567b
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2016-06-26T19:55:01Z
Releases: 9.6.0
Avoid making a separate pass over the query to check for partializability.

It's rather silly to make a separate pass over the tlist + HAVING qual,
and a separate set of visits to the syscache, when get_agg_clause_costs
already has all the required information in hand.  This nets out as less
code as well as fewer cycles.

Files