David Rowley <dgrowleyml@gmail.com> writes:
>>
>> The two if-clauses looks unnecessary, it should be handled by
>> pathkeys_count_contained_in already. The same issue exists in
>> pathkeys_useful_for_ordering as well. Attached patch fix it in master.
>
> I agree. I'd rather not have those redundant checks in
> pathkeys_useful_for_setop(), and I do want those functions to be as
> similar as possible. So I think adjusting it in master is a good
> idea.
>
> I've pushed your patch.
>
Thanks for the pushing!
--
Best Regards
Andy Fan