Heikki Linnakangas <hlinnaka(at)iki(dot)fi> writes:
> The find_ec_member_for_expr() call in create_indexscan_plan() fails to
> find the equivalence member for the path key.
> match_clause_to_ordering_op() found the match by commuting the operator,
> but code in create_indexscan_plan() doesn't take that into account.
Right.
> I think that trying to find the equivalence member in
> create_index_scan() is too fragile.
I agree; will contemplate how to do this better.
regards, tom lane