Optimize the case where a btree indexscan has current and mark positions
Tom Lane <tgl@sss.pgh.pa.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/nbtree/nbtree.c | modified | +39 −24 |
| src/backend/access/nbtree/nbtsearch.c | modified | +18 −1 |
| src/include/access/nbtree.h | modified | +10 −1 |