OSDN Git Service

Reimplement hash index locking algorithms, per my recent proposal to
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 4 Sep 2003 22:06:27 +0000 (22:06 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 4 Sep 2003 22:06:27 +0000 (22:06 +0000)
commit7a3693716dad968569d3b91ce203841f1293370d
tree60e513010279ef799fb63bab5cdc6c3187b1ae7e
parentca43f71ca5c24497ad6f2904fd7ac9ce9b2bf75a
Reimplement hash index locking algorithms, per my recent proposal to
pghackers.  This fixes the problem recently reported by Markus KrÌutner
(hash bucket split corrupts the state of scans being done concurrently),
and I believe it also fixes all the known problems with deadlocks in
hash index operations.  Hash indexes are still not really ready for prime
time (since they aren't WAL-logged), but this is a step forward.
src/backend/access/hash/README
src/backend/access/hash/hash.c
src/backend/access/hash/hashinsert.c
src/backend/access/hash/hashovfl.c
src/backend/access/hash/hashpage.c
src/backend/access/hash/hashscan.c
src/backend/access/hash/hashsearch.c
src/backend/access/hash/hashutil.c
src/backend/storage/lmgr/lmgr.c
src/include/access/hash.h
src/include/storage/lmgr.h