OR-clause to ANY transformation
Planner rewriting OR clauses and IN (VALUES ...) lists into ScalarArrayOp = ANY.
Versions
- PostgreSQL 19 · worked-on · improved · minor
- PostgreSQL 18 · shipped · new · major · 9 commits · +2.4k / -308 lines
- PostgreSQL 17 · shipped · new · major · 2 commits · +786 / -21 lines
- PostgreSQL 16 · worked-on · new · major
Threads
- Use opresulttype instead of calling SearchSysCache1() in match_orclause_to_indexcol()
- Fix typo in comment of match_orclause_to_indexcol()
- A little cosmetic to convert_VALUES_to_ANY()
- pgsql: Convert 'x IN (VALUES ...)' to 'x = ANY ...' then appropriate
- Replace IN VALUES with ANY in WHERE clauses during optimization
- POC, WIP: OR-clause support for indexes