git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 09cb5c0) | patch
Rewrite btree vacuuming to fold the former bulkdelete and cleanup operations
Mon, 8 May 2006 00:00:17 +0000 (00:00 +0000)
Mon, 8 May 2006 00:00:17 +0000 (00:00 +0000)
commit 5749f6ef0cc1c67ef9c9ad2108b3d97b82555c80
Rewrite btree vacuuming to fold the former bulkdelete and cleanup operations
into a single mostly-physical-order scan of the index. This requires some
ticklish interlocking considerations, but should create no material
performance impact on normal index operations (at least given the
already-committed changes to make scans work a page at a time). VACUUM
itself should get significantly faster in any index that's degenerated to a
very nonlinear page order. Also, we save one pass over the index entirely,
except in the case where there were no deletions to do and so only one pass
happened anyway.

Original patch by Heikki Linnakangas, rework by Tom Lane.
src/backend/access/nbtree/README diff | blob | blame | history
src/backend/access/nbtree/nbtinsert.c diff | blob | blame | history
src/backend/access/nbtree/nbtpage.c diff | blob | blame | history
src/backend/access/nbtree/nbtree.c diff | blob | blame | history
src/backend/access/nbtree/nbtsort.c diff | blob | blame | history
src/backend/access/nbtree/nbtutils.c diff | blob | blame | history
src/backend/access/nbtree/nbtxlog.c diff | blob | blame | history
src/backend/storage/ipc/ipci.c diff | blob | blame | history
src/include/access/nbtree.h diff | blob | blame | history
src/include/storage/lwlock.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /