Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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(-)

pgsql-committers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group