]> granicus.if.org Git - postgresql/commit
Arrange to cache btree metapage data in the relcache entry for the index,
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 25 Apr 2006 22:46:05 +0000 (22:46 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 25 Apr 2006 22:46:05 +0000 (22:46 +0000)
commitd2896a9ed14387912bffb6f7ed188aca0a245e71
tree1956bb9b3157f5bbe8c78f948c4f5df782773195
parent89083876c9b409d604d1a7f704e1323547aef2c9
Arrange to cache btree metapage data in the relcache entry for the index,
thereby saving a visit to the metapage in most index searches/updates.
This wouldn't actually save any I/O (since in the old regime the metapage
generally stayed in cache anyway), but it does provide a useful decrease
in bufmgr traffic in high-contention scenarios.  Per my recent proposal.
src/backend/access/nbtree/README
src/backend/access/nbtree/nbtinsert.c
src/backend/access/nbtree/nbtpage.c
src/backend/access/nbtree/nbtree.c
src/backend/utils/cache/relcache.c
src/include/utils/rel.h