>
>
> So now you have to figure out
> what the selectivity of that is after the application of the partially
> redundant IN clauses.
>

Would marking the new added RestrictInfo.norm_selec > 1 be OK?

clause_selectivity_ext

        /*
         * If the clause is marked redundant, always return 1.0.
         */
        if (rinfo->norm_selec > 1)
            return (Selectivity) 1.0;

-- 
Best Regards
Andy Fan (https://www.aliyun.com/)

Reply via email to