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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/d4d11940df94ee13166dda70271ff3b97e43bc9b
Modified Files
--------------
src/backend/optimizer/path/indxpath.c | 2 +-
src/test/regress/expected/create_index.out | 10 +++++-----
src/test/regress/sql/create_index.sql | 4 ++--
3 files changed, 8 insertions(+), 8 deletions(-)