pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove the wrong assertion from match_orclause_to_indexcol()
Date: Mon, 25 Nov 2024 07:07:38 +0000
Message-ID: <E1tFTC6-003QmY-PH@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1tFTC6-003QmY-PH@gemulon.postgresql.org>
Permalink:  ../E1tFTC6-003QmY-PH@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tFTC6-003QmY-PH@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Remove the wrong assertion from match_orclause_to_indexcol()
  In-Reply-To: <E1tFTC6-003QmY-PH@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox