Remove the wrong assertion from match_orclause_to_indexcol()
Alexander Korotkov <akorotkov@postgresql.org>
Remove the wrong assertion from match_orclause_to_indexcol() Obviously, the constant could be zero. Also, add the relevant check to regression tests. Reported-by: Richard Guo Discussion: https://postgr.es/m/CAMbWs4-siKJdtWhcbqk4Y-xG12do2Ckm1qw672GNsSnDqL9FQg%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/path/indxpath.c | modified | +1 −1 |
| src/test/regress/expected/create_index.out | modified | +5 −5 |
| src/test/regress/sql/create_index.sql | modified | +2 −2 |
Discussion
- POC, WIP: OR-clause support for indexes 322 messages · 2015-12-26 → 2025-03-28