pgsql: Avoid making a separate pass over the query to check for partial

Started by Tom Laneabout 10 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f1993038a4f0ce5fbeb7b562b2acd571bf6b567b

Modified Files
--------------
src/backend/optimizer/plan/planner.c | 29 +++++----
src/backend/optimizer/util/clauses.c | 118 ++++++++++-------------------------
src/include/nodes/relation.h | 5 +-
src/include/optimizer/clauses.h | 20 ------
4 files changed, 54 insertions(+), 118 deletions(-)

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers