-
- Downloads
Modify btree to delete known-dead index entries without an actual VACUUM.
When we are about to split an index page to do an insertion, first look to see if any entries marked LP_DELETE exist on the page, and if so remove them to try to make enough space for the desired insert. This should reduce index bloat in heavily-updated tables, although of course you still need VACUUM eventually to clean up the heap. Junji Teramoto
Showing
- src/backend/access/nbtree/README 42 additions, 4 deletionssrc/backend/access/nbtree/README
- src/backend/access/nbtree/nbtinsert.c 73 additions, 8 deletionssrc/backend/access/nbtree/nbtinsert.c
- src/backend/access/nbtree/nbtpage.c 10 additions, 1 deletionsrc/backend/access/nbtree/nbtpage.c
- src/backend/access/nbtree/nbtutils.c 7 additions, 1 deletionsrc/backend/access/nbtree/nbtutils.c
- src/backend/access/nbtree/nbtxlog.c 9 additions, 1 deletionsrc/backend/access/nbtree/nbtxlog.c
- src/include/access/nbtree.h 3 additions, 1 deletionsrc/include/access/nbtree.h
Loading
Please register or sign in to comment