Обсуждение: pgsql: Avoid holding vmbuffer pin after VACUUM.

Поиск
Список
Период
Сортировка

pgsql: Avoid holding vmbuffer pin after VACUUM.

От
Simon Riggs
Дата:
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

Branch
------
REL8_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/9f3558af8acf0c909ca824d0aa93152680ec3967

Modified Files
--------------
src/backend/commands/vacuumlazy.c |   16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)