]> granicus.if.org Git - postgresql/commit
Avoid wholesale autovacuuming when autovacuum is nominally off.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 30 Jul 2014 18:41:35 +0000 (14:41 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 30 Jul 2014 18:41:58 +0000 (14:41 -0400)
commitf21afe42146371ee15d4364c0e9e3d64ac317ddf
treea8fa1433432528b446c2ea049057e1940b79a636
parentde88ec6bf45477cd02905a8802e79868cb2ffdc3
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.
src/backend/postmaster/autovacuum.c