Skip not SOAP-supported indexes while transforming an OR clause into SAOP
Alexander Korotkov <akorotkov@postgresql.org>
Skip not SOAP-supported indexes while transforming an OR clause into SAOP There is no point in transforming OR-clauses into SAOP's if the target index doesn't support SAOP scans anyway. This commit adds corresponding checks to match_orclause_to_indexcol() and group_similar_or_args(). The first check fixes the actual bug, while the second just saves some cycles. Reported-by: Alexander Lakhin Discussion: https://postgr.es/m/8174de69-9e1a-0827-0e81-ef97f56a5939%40gmail.com Author: Alena Rybakina Reviewed-by: Ranier Vilela, Alexander Korotkov, Andrei Lepikhov
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/path/indxpath.c | modified | +9 −2 |
| src/test/regress/expected/create_index.out | modified | +18 −0 |
| src/test/regress/sql/create_index.sql | modified | +6 −0 |
Discussion
- POC, WIP: OR-clause support for indexes 322 messages · 2015-12-26 → 2025-03-28