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