Re: POC, WIP: OR-clause support for indexes

From: jian he <jian(dot)universality(at)gmail(dot)com>
To: Alexander Korotkov <aekorotkov(at)gmail(dot)com>
Cc: Andrei Lepikhov <lepihov(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Nikolay Shaplov <dhyan(at)nataraj(dot)su>, pgsql-hackers(at)lists(dot)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org, Peter Geoghegan <pg(at)bowt(dot)ie>, Marcos Pegoraro <marcos(at)f10(dot)com(dot)br>, teodor(at)sigaev(dot)ru, Peter Eisentraut <peter(at)eisentraut(dot)org>, Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>, Alena Rybakina <a(dot)rybakina(at)postgrespro(dot)ru>
Subject: Re: POC, WIP: OR-clause support for indexes
Date: 2024-11-25 02:59:20
Message-ID: CACJufxGVEbUCSrz=9oOdv5XhCH8G0uOjPizVOtva_eU4YKuJ_Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

looking at it again. in match_orclause_to_indexcol

/* Only the operator returning a boolean suits the transformation. */
if (get_op_rettype(opno) != BOOLOID)
break;

can change to

if (subClause->opresulttype != BOOLOID)
break;

for saving some cycles?

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Suraj Kharage 2024-11-25 03:12:53 Re: Support for NO INHERIT to INHERIT state change with named NOT NULL constraints
Previous Message Sutou Kouhei 2024-11-25 02:06:20 Re: Make COPY format extendable: Extract COPY TO format implementations