pgsql: Avoid wholesale autovacuuming when autovacuum is nominally off.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Avoid wholesale autovacuuming when autovacuum is nominally off.
Date: 2014-07-30 18:42:36
Message-ID: E1XCYpg-00083z-9s@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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_4_STABLE

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

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

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2014-07-31 13:59:22 pgsql: Move log_newpage and log_newpage_buffer to xlog.c.
Previous Message Robert Haas 2014-07-30 17:24:30 pgsql: pgbench: Allow \setrandom to generate Gaussian/exponential distr