- Notifications
You must be signed in to change notification settings - Fork5
Commite2a186b
committed
Add a multi-worker capability to autovacuum. This allows multiple worker
processes to be running simultaneously. Also, now autovacuum processes do notcount towards the max_connections limit; they are counted separately fromregular processes, and are limited by the new GUC variableautovacuum_max_workers.The launcher now has intelligence to launch workers on each database everyautovacuum_naptime seconds, limited only on the max amount of worker slotsavailable.Also, the global worker I/O utilization is limited by the vacuum cost-baseddelay feature. Workers are "balanced" so that the total I/O consumption doesnot exceed the established limit. This part of the patch was contributed byITAGAKI Takahiro.Per discussion.1 parent42dc4b6 commite2a186b
File tree
12 files changed
+1171
-159
lines changed- doc/src/sgml
- src
- backend
- commands
- postmaster
- storage/lmgr
- utils
- init
- misc
- include
- postmaster
- storage
12 files changed
+1171
-159
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
3166 | 3166 | | |
3167 | 3167 | | |
3168 | 3168 | | |
3169 | | - | |
| 3169 | + | |
3170 | 3170 | | |
3171 | 3171 | | |
3172 | 3172 | | |
| |||
3175 | 3175 | | |
3176 | 3176 | | |
3177 | 3177 | | |
| 3178 | + | |
| 3179 | + | |
| 3180 | + | |
| 3181 | + | |
| 3182 | + | |
| 3183 | + | |
| 3184 | + | |
| 3185 | + | |
| 3186 | + | |
| 3187 | + | |
| 3188 | + | |
| 3189 | + | |
| 3190 | + | |
| 3191 | + | |
| 3192 | + | |
3178 | 3193 | | |
3179 | 3194 | | |
3180 | 3195 | | |
3181 | 3196 | | |
3182 | 3197 | | |
3183 | 3198 | | |
3184 | 3199 | | |
3185 | | - | |
3186 | | - | |
3187 | | - | |
| 3200 | + | |
| 3201 | + | |
| 3202 | + | |
3188 | 3203 | | |
3189 | 3204 | | |
3190 | 3205 | | |
| |||
3318 | 3333 | | |
3319 | 3334 | | |
3320 | 3335 | | |
3321 | | - | |
| 3336 | + | |
| 3337 | + | |
| 3338 | + | |
| 3339 | + | |
3322 | 3340 | | |
3323 | 3341 | | |
3324 | 3342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | | - | |
470 | | - | |
471 | | - | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
472 | 472 | | |
473 | | - | |
| 473 | + | |
474 | 474 | | |
475 | 475 | | |
476 | | - | |
| 476 | + | |
477 | 477 | | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
| 478 | + | |
| 479 | + | |
482 | 480 | | |
483 | 481 | | |
484 | 482 | | |
485 | 483 | | |
486 | | - | |
487 | | - | |
488 | | - | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
489 | 506 | | |
490 | 507 | | |
491 | 508 | | |
| |||
581 | 598 | | |
582 | 599 | | |
583 | 600 | | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
584 | 607 | | |
585 | 608 | | |
586 | 609 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
3504 | 3504 | | |
3505 | 3505 | | |
3506 | 3506 | | |
| 3507 | + | |
| 3508 | + | |
| 3509 | + | |
3507 | 3510 | | |
3508 | 3511 | | |
3509 | 3512 | | |
| |||
0 commit comments
Comments
(0)