Subject Re: Why does the optimizer choose NATURAL for this tiny table?
Author Dmitry Yemanov
12.11.2014 21:48, 'Leyne, Sean' wrote:
>
>> 2) ON p.icd10 = t.icd10 OR p.icd10 = t.icd10
>
> I think you meant
> ON p.icd10 = t.icd10 OR p.icd10 = substring(t.icd10 from 1 for 3)

Nope, I was interested exactly in that [useless] condition. I want to be
sure that both ORed parts are trivially computable.


Dmitry