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

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Improve hash_array() logic for combining hash values.
Date: 2011-05-23 19:23:08
Message-ID: E1QOaia-0004ac-SE@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2011-05-23 19:30:23 pgsql: Fix integer overflow in text_format function, reported by Dean R
Previous Message Tom Lane 2011-05-23 18:43:14 pgsql: Lobotomize typmod check in convert_tuples_by_position, back bran