]> granicus.if.org Git - postgresql/commit
Avoid holding vmbuffer pin after VACUUM.
authorSimon Riggs <simon@2ndQuadrant.com>
Mon, 3 Dec 2012 18:55:42 +0000 (18:55 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Mon, 3 Dec 2012 18:55:42 +0000 (18:55 +0000)
commit3c4eec4488fef07675db85e73445f410dac732dd
treeea595f80b3983f8acb1c8f99ba712dfbabe17352
parente0aad34a6b1afa4fc165849d2743f769e550f022
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
src/backend/commands/vacuumlazy.c