The latter. By the time you pay the price of a hash lookup, a slightly longer key is nearly free. (Maybe entirely free, since it might produce better-distributed hash values.)
OK -- I figured that's what you'd say, so I've already started down that road.
dynahash only supports fixed-length keys, so don't forget to zero out unused positions in the argument type vector.
Important safety tip! Thanks.
BTW, I can't see any need to include the return type in the hash key --- wouldn't it be predetermined given the argument types?
Yup, very true.
Thanks,
Joe
---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faqs/FAQ.html