]> granicus.if.org Git - postgresql/commit
Avoid making a separate pass over the query to check for partializability.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 26 Jun 2016 19:55:01 +0000 (15:55 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 26 Jun 2016 19:55:01 +0000 (15:55 -0400)
commitf1993038a4f0ce5fbeb7b562b2acd571bf6b567b
tree93f5ee92beb05cab27515290246a72a1b6648845
parent19e972d5580c655423572e3c870e47b5b7c346f6
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.
src/backend/optimizer/plan/planner.c
src/backend/optimizer/util/clauses.c
src/include/nodes/relation.h
src/include/optimizer/clauses.h