Create a routine PageIndexMultiDelete() that replaces a loop around

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 94e03330cbd163378e43094388f87fcba4801ba8
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-03-22T06:17:03Z
Releases: 8.1.0
Create a routine PageIndexMultiDelete() that replaces a loop around
PageIndexTupleDelete() with a single pass of compactification ---
logic mostly lifted from PageRepairFragmentation.  I noticed while
profiling that a VACUUM that's cleaning up a whole lot of deleted
tuples would spend as much as a third of its CPU time in
PageIndexTupleDelete; not too surprising considering the loop method
was roughly O(N^2) in the number of tuples involved.

Files