• T
    Fix several hash functions that were taking chintzy shortcuts instead of · 1f559b7d
    Tom Lane 提交于
    delivering a well-randomized hash value.  I got religion on this after
    observing that performance of multi-batch hash join degrades terribly if the
    higher-order bits of hash values aren't random, as indeed was true for say
    hashes of small integer values.  It's now expected and documented that hash
    functions should use hash_any or some comparable method to ensure that all
    bits of their output are about equally random.
    
    initdb forced because this change invalidates existing hash indexes.  For the
    same reason, this isn't back-patchable; the hash join performance problem
    will get a band-aid fix in the back branches.
    1f559b7d
catversion.h 2.6 KB