Guy Thornley <guy(at)esphion(dot)com> writes:
> Below is a patch for the lazy vacuum. It implements a simple I/O throttle so
> boxen arnt killed for hours a day when VACUUM runs.
Wasn't this idea tried and rejected already? You haven't given us any
information about actual performance.
> The usleep() could be replaced with a select() call with a timeout an no
> fd_set's to aid portability..
usleep is not portable, AFAIR.
regards, tom lane