]> granicus.if.org Git - postgresql/commit
Avoid holding vmbuffer pin after VACUUM.
authorSimon Riggs <simon@2ndQuadrant.com>
Mon, 3 Dec 2012 18:57:24 +0000 (18:57 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Mon, 3 Dec 2012 18:57:24 +0000 (18:57 +0000)
commit9f3558af8acf0c909ca824d0aa93152680ec3967
tree6bf168e3ff8f1208f39f7f19d07de8a0b789b3ab
parent1d48cecc318c506b08963712d7e0ce89cd7e935f
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