forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf21afe4
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 parentde88ec6 commitf21afe4
1 file changed
+9
-2
lines changedLines changed: 9 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2656 | 2656 |
| |
2657 | 2657 |
| |
2658 | 2658 |
| |
2659 |
| - | |
| 2659 | + | |
2660 | 2660 |
| |
2661 | 2661 |
| |
2662 | 2662 |
| |
2663 | 2663 |
| |
2664 | 2664 |
| |
2665 | 2665 |
| |
2666 |
| - | |
| 2666 | + | |
| 2667 | + | |
| 2668 | + | |
| 2669 | + | |
| 2670 | + | |
| 2671 | + | |
| 2672 | + | |
| 2673 | + | |
2667 | 2674 |
| |
2668 | 2675 |
| |
2669 | 2676 |
| |
|
0 commit comments
Comments
(0)