pgsql: Prefer actual constants to pseudo-constants in equivalence class

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Prefer actual constants to pseudo-constants in equivalence class
Дата
Msg-id E1TRoWc-0007Lh-AR@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Prefer actual constants to pseudo-constants in equivalence class machinery.

generate_base_implied_equalities_const() should prefer plain Consts over
other em_is_const eclass members when choosing the "pivot" value that
all the other members will be equated to.  This makes it more likely that
the generated equalities will be useful in constraint-exclusion proofs.
Per report from Rushabh Lathia.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/17804fa71b4a4e7a099f780616a7b53ea591774d

Modified Files
--------------
src/backend/optimizer/path/equivclass.c |   10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Prefer actual constants to pseudo-constants in equivalence class
Следующее
От: Kevin Grittner
Дата:
Сообщение: pgsql: Throw error if expiring tuple is again updated or deleted.