Thread: pgsql: Improve hash_array() logic for combining hash values.

pgsql: Improve hash_array() logic for combining hash values.

From
Robert Haas
Date:
Improve hash_array() logic for combining hash values.

The new logic is less vulnerable to transpositions.

This invalidates the contents of hash indexes built with the old
functions; hence, bump catversion.

Dean Rasheed

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/7149b128dc12ece64c182962dc4f882ea7559d0c

Modified Files
--------------
src/backend/utils/adt/arrayfuncs.c |   16 +++++++++++-----
src/include/catalog/catversion.h   |    2 +-
2 files changed, 12 insertions(+), 6 deletions(-)