pgsql: Avoid wholesale autovacuuming when autovacuum is nominally off.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Avoid wholesale autovacuuming when autovacuum is nominally off.
Дата
Msg-id E1XCYpg-000847-AX@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Avoid wholesale autovacuuming when autovacuum is nominally off.

When autovacuum is nominally off, we will still launch autovac workers
to vacuum tables that are at risk of XID wraparound.  But after we'd done
that, an autovac worker would proceed to autovacuum every table in the
targeted database, if they meet the usual thresholds for autovacuuming.
This is at best pretty unexpected; at worst it delays response to the
wraparound threat.  Fix it so that if autovacuum is nominally off, we
*only* do forced vacuums and not any other work.

Per gripe from Andrey Zhidenkov.  This has been like this all along,
so back-patch to all supported branches.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/f21afe42146371ee15d4364c0e9e3d64ac317ddf

Modified Files
--------------
src/backend/postmaster/autovacuum.c |   11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Avoid wholesale autovacuuming when autovacuum is nominally off.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Avoid wholesale autovacuuming when autovacuum is nominally off.