Boszormenyi Zoltan <z...@cybertec.at> writes: > Tom Lane írta: >> AFAIR, canonical pathkeys are the *only* thing in the planner where pure >> pointer equality is interesting. So I doubt this hack is of any use for >> EquivalenceClass, even if the lists were likely to be long which they >> aren't.
> No, for EquivalanceClass->ec_member, I need to do something > funnier, like implement compare(Node *, Node *) and use that > instead of equal(Node *, Node *)... Something like nodeToString() > on both Node * and strcmp() the resulting strings. Well, (a) that doesn't work (hint: there are fields in nodes that are intentionally ignored by equal()), and (b) I still don't believe that there's an actual bottleneck there. ECs generally aren't very big. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers