pgsql: Remove the wrong assertion from match_orclause_to_indexcol()

From: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove the wrong assertion from match_orclause_to_indexcol()
Date: 2024-11-25 07:07:38
Message-ID: E1tFTC6-003QmY-PH@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2024-11-25 07:58:49 pgsql: Assume that <stdbool.h> conforms to the C standard.
Previous Message Amit Kapila 2024-11-25 05:55:54 pgsql: Doc: Clarify the `inactive_since` field description.