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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Avoid making a separate pass over the query to check for partial
Дата
Msg-id E1bHG9A-0000QA-UN@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Rethink node-level representation of partial-aggregation modes.
Следующее
От: Teodor Sigaev
Дата:
Сообщение: pgsql: Make exact distance match for FTS phrase operator