pgsql: Avoid making a separate pass over the query to check for partial - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Avoid making a separate pass over the query to check for partial
Date
Msg-id E1bHG9A-0000QA-UN@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Rethink node-level representation of partial-aggregation modes.
Next
From: Teodor Sigaev
Date:
Subject: pgsql: Make exact distance match for FTS phrase operator