forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit91b4a88
committed
Avoid wholesale autovacuuming when autovacuum is nominally off.
When autovacuum is nominally off, we will still launch autovac workersto vacuum tables that are at risk of XID wraparound. But after we'd donethat, an autovac worker would proceed to autovacuum every table in thetargeted database, if they meet the usual thresholds for autovacuuming.This is at best pretty unexpected; at worst it delays response to thewraparound 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.1 parent8049839 commit91b4a88
1 file changed
+9
-2
lines changedLines changed: 9 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2617 | 2617 |
| |
2618 | 2618 |
| |
2619 | 2619 |
| |
2620 |
| - | |
| 2620 | + | |
2621 | 2621 |
| |
2622 | 2622 |
| |
2623 | 2623 |
| |
2624 | 2624 |
| |
2625 | 2625 |
| |
2626 | 2626 |
| |
2627 |
| - | |
| 2627 | + | |
| 2628 | + | |
| 2629 | + | |
| 2630 | + | |
| 2631 | + | |
| 2632 | + | |
| 2633 | + | |
| 2634 | + | |
2628 | 2635 |
| |
2629 | 2636 |
| |
2630 | 2637 |
| |
|
0 commit comments
Comments
(0)