Skip to content
Snippets Groups Projects
  • Tom Lane's avatar
    c83aed34
    Avoid wholesale autovacuuming when autovacuum is nominally off. · c83aed34
    Tom Lane authored
    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.
    c83aed34
    History
    Avoid wholesale autovacuuming when autovacuum is nominally off.
    Tom Lane authored
    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.