Micro-optimization of markpos() and restrpos() in btree and hash indexes.
authorNeil Conway <neilc@samurai.com>
Wed, 17 Nov 2004 03:13:38 +0000 (03:13 +0000)
committerNeil Conway <neilc@samurai.com>
Wed, 17 Nov 2004 03:13:38 +0000 (03:13 +0000)
commit5d1dd2bc55edaf9bd4f733e835e56cabbfe310cd
tree7c5e756adbaf02329cf9f32e2b22dce44667e73f
parenta51e54cf5b93de5943d2a28e2c4058b5be456aeb
Micro-optimization of markpos() and restrpos() in btree and hash indexes.
Rather than using ReadBuffer() to increment the reference count on an
already-pinned buffer, we should use IncrBufferRefCount() as it is
faster and does not require acquiring the BufMgrLock.
src/backend/access/hash/hash.c
src/backend/access/nbtree/nbtree.c