pgsql: Refactor simplify_function et al to centralize argument simplifi

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Refactor simplify_function et al to centralize argument simplifi
Дата
Msg-id E1SBDiL-0006dM-IA@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Refactor simplify_function et al to centralize argument simplification.

We were doing the recursive simplification of function/operator arguments
in half a dozen different places, with rather baroque logic to ensure it
didn't get done multiple times on some arguments.  This patch improves that
by postponing argument simplification until after we've dealt with named
parameters and added any needed default expressions.

Marti Raudsepp, somewhat hacked on by me

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/81a646febe87964725647a36d839f6b4b405f3ae

Modified Files
--------------
src/backend/optimizer/util/clauses.c |  241 +++++++++++++++-------------------
1 files changed, 107 insertions(+), 134 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Code review for protransform patches.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Cast some printf arguments to avoid possibly-nonportable behavio