]> granicus.if.org Git - postgresql/commit
Fix hash_update_hash_key() to handle same-bucket case correctly.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 15 Jan 2013 02:57:15 +0000 (21:57 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 15 Jan 2013 02:57:15 +0000 (21:57 -0500)
commit1b794d3f3286036eec1d09d5cbea989162657331
tree340be4d8881d43c6b6dc62703844516d0473d73d
parent3f4b1749a8168893558f70021be4f40c650bbada
Fix hash_update_hash_key() to handle same-bucket case correctly.

Original coding would corrupt the hashtable if the item being updated was
at the end of its bucket chain and the new hash key hashed to that same
bucket.  Diagnosis and fix by Heikki Linnakangas.
src/backend/utils/hash/dynahash.c