Simplify relation_has_unique_index_for()
Richard Guo <rguo@postgresql.org>
Simplify relation_has_unique_index_for() Now that the only call to relation_has_unique_index_for() that supplied an exprlist and oprlist has been removed, the loop handling those lists is effectively dead code. This patch removes that loop and simplifies the function accordingly. Author: Richard Guo <guofenglinux@gmail.com> Discussion: https://postgr.es/m/CAMbWs4-EBnaRvEs7frTLbsXiweSTUXifsteF-d3rvv01FKO86w@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/path/indxpath.c | modified | +14 −71 |
| src/backend/optimizer/plan/analyzejoins.c | modified | +2 −3 |
| src/include/optimizer/paths.h | modified | +1 −4 |
Discussion
- Pathify RHS unique-ification for semijoin planning 34 messages · 2025-05-22 → 2025-09-03