Re: Replace IN VALUES with ANY in WHERE clauses during optimization

Поиск
Список
Период
Сортировка
Искать

Re: Replace IN VALUES with ANY in WHERE clauses during optimization

От:
newtglobal postgresql_contributors <postgresql_contributors@newtglobalcorp.com>
Дата:
The following review has been posted through the commitfest application:
make installcheck-world:  tested, failed
Implements feature:       tested, failed
Spec compliant:           tested, failed
Documentation:            tested, failed

Hi Ivan Kush
I tested the patch with `commands.sql` and observed noticeable improvements in planning and execution time, especially with multiple tables. Even single-table queries show small time reductions (0.02–0.04 ms). The patch optimizes `IN` clauses effectively, particularly with `VALUES`. For example, `col IN (VALUES ('a'), ('b'), ('c'))` now behaves similarly to `col IN ('a', 'b', 'c')`, leading to faster execution and reduced planning overhead. 
Regards, 
Postgresql Contributors - NewtGlobal
FAQ