forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2aa6e33
committed
Skip redundant anti-wraparound vacuums
An anti-wraparound vacuum has to be by definition aggressive as it needsto work on all the pages of a relation. However it can happen that dueto some concurrent activity an anti-wraparound vacuum is marked asnon-aggressive, which makes it redundant with a previous run, andit is actually useless as an anti-wraparound vacuum should process allthe pages of a relation. This commit makes such vacuums to be skipped.An anti-wraparound vacuum not aggressive can be found easily by mixinglow values of autovacuum_freeze_max_age (to control anti-wraparound) andautovacuum_freeze_table_age (to control the aggressiveness).28a8fa9 has added some extra logging printing all the possiblecombinations of anti-wraparound and aggressive vacuums, which now getssimplified as an anti-wraparound vacuum also non-aggressive getsskipped.Per discussion mainly between Andrew Dunstan, Robert Haas, ÁlvaroHerrera, Kyotaro Horiguchi, Masahiko Sawada, and myself.Author: Kyotaro Horiguchi, Michael PaquierReviewed-by: Andrew Dunstan, Álvaro HerreraDiscussion:https://postgr.es/m/20180914153554.562muwr3uwujno75@alvherre.pgsql1 parent47b3c26 commit2aa6e33
1 file changed
+20
-4
lines changedLines changed: 20 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
248 | 248 |
| |
249 | 249 |
| |
250 | 250 |
| |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
251 | 268 |
| |
252 | 269 |
| |
253 | 270 |
| |
| |||
375 | 392 |
| |
376 | 393 |
| |
377 | 394 |
| |
378 |
| - | |
379 |
| - | |
380 |
| - | |
381 |
| - | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
382 | 398 |
| |
383 | 399 |
| |
384 | 400 |
| |
|
0 commit comments
Comments
(0)