Further optimize GIN multi-key searches.
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Further optimize GIN multi-key searches. When skipping over some items in a posting tree, re-find the new location by descending the tree from root, rather than walking the right links. This can save a lot of I/O. Heavily modified from Alexander Korotkov's fast scan patch.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/gin/gindatapage.c | modified | +4 −5 |
| src/backend/access/gin/ginget.c | modified | +92 −23 |
| src/include/access/gin_private.h | modified | +2 −1 |