]> granicus.if.org Git - postgresql/commit
Optimize the case where a btree indexscan has current and mark positions
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Aug 2006 01:18:34 +0000 (01:18 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Aug 2006 01:18:34 +0000 (01:18 +0000)
commit08ae5edc5c883352018ef754562fc8edbd4177fd
treeef87fc45a4e1dc895b98c64fdb1d1d55295af24f
parent7ad642d0b51fdb3a2fb4372f4b298d3f363b05ec
Optimize the case where a btree indexscan has current and mark positions
on the same index page; we can avoid data copying as well as buffer refcount
manipulations in this common case.  Makes for a small but noticeable
improvement in mergejoin speed.

Heikki Linnakangas
src/backend/access/nbtree/nbtree.c
src/backend/access/nbtree/nbtsearch.c
src/include/access/nbtree.h