]> granicus.if.org Git - postgresql/commit
Remove the 'slow' path for btree index build, which built the btree
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 1 Apr 2006 03:03:37 +0000 (03:03 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 1 Apr 2006 03:03:37 +0000 (03:03 +0000)
commit89bda95d820faedee8e7fb127f5ba9bd4785c327
treef4230f0405ce23fa6d15b51ce47c5dd248728a8f
parenta8b8f4db23cff16af50a2b960cb8d20d39b761cf
Remove the 'slow' path for btree index build, which built the btree
incrementally by successive inserts rather than by sorting the data.
We were only using the slow path during bootstrap, apparently because
when first written it failed during bootstrap --- but it works fine now
AFAICT.  Removing it saves a hundred or so lines of code and produces
noticeably (~10%) smaller initial states of the system catalog indexes.
While that won't make much difference for heavily-modified catalogs,
for the more static ones there may be a useful long-term performance
improvement.
src/backend/access/nbtree/nbtpage.c
src/backend/access/nbtree/nbtree.c
src/backend/access/nbtree/nbtxlog.c
src/include/access/nbtree.h