Avoid holding vmbuffer pin after VACUUM.

Simon Riggs <simon@2ndQuadrant.com>

Commit: c52e0e2afc0c8ca2de4e03fc8478d89b4d5e7fce
Author: Simon Riggs <simon@2ndQuadrant.com>
Date: 2012-12-03T18:56:41Z
Releases: 9.0.11
Avoid holding vmbuffer pin after VACUUM.
During VACUUM if we pause to perform a cycle
of index cleanup we drop the vmbuffer pin,
so we should do the same thing when heap
scan completes. This avoids holding vmbuffer
pin across the main index cleanup in VACUUM,
which could be minutes or hours longer than
necessary for correctness.

Bug report and suggested fix from Pavan Deolasee

Files

PathChange+/−
src/backend/commands/vacuumlazy.c modified +9 −7