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