pgsql: Remove the wrong assertion from match_orclause_to_indexcol() - Mailing list pgsql-committers

From Alexander Korotkov
Subject pgsql: Remove the wrong assertion from match_orclause_to_indexcol()
Date
Msg-id E1tFTC6-003QmY-PH@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Amit Kapila
Date:
Subject: pgsql: Doc: Clarify the `inactive_since` field description.
Next
From: Thomas Munro
Date:
Subject: pgsql: Assume that conforms to the C standard.