"Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp> writes:
> Why is valid_or_clause(clausenode) necessary ?
Looks like a waste of cycles to me too.
If the subclauses of an OR could get rearranged during optimization
then this might be a necessary check, but AFAIK they don't.
regards, tom lane