forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbb8dff9
committed
Add cost-based vacuum delay time to progress views.
This commit adds the amount of time spent sleeping due tocost-based delay to the pg_stat_progress_vacuum andpg_stat_progress_analyze system views. A new configurationparameter named track_cost_delay_timing, which is off by default,controls whether this information is gathered. For vacuum, thereported value includes the sleep time of any associated parallelworkers. However, parallel workers only report their sleep timeonce per second to avoid overloading the leader process.Bumps catversion.Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>Co-authored-by: Nathan Bossart <nathandbossart@gmail.com>Reviewed-by: Sami Imseih <samimseih@gmail.com>Reviewed-by: Robert Haas <robertmhaas@gmail.com>Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>Reviewed-by: Masahiro Ikeda <ikedamsh@oss.nttdata.com>Reviewed-by: Dilip Kumar <dilipbalaut@gmail.com>Reviewed-by: Sergei Kornilov <sk@zsrv.org>Discussion:https://postgr.es/m/ZmaXmWDL829fzAVX%40ip-10-97-1-34.eu-west-3.compute.internal1 parente5b0b0c commitbb8dff9
File tree
11 files changed
+144
-5
lines changed- doc/src/sgml
- src
- backend
- catalog
- commands
- utils/misc
- include
- catalog
- commands
- test/regress/expected
11 files changed
+144
-5
lines changedLines changed: 24 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8252 | 8252 |
| |
8253 | 8253 |
| |
8254 | 8254 |
| |
| 8255 | + | |
| 8256 | + | |
| 8257 | + | |
| 8258 | + | |
| 8259 | + | |
| 8260 | + | |
| 8261 | + | |
| 8262 | + | |
| 8263 | + | |
| 8264 | + | |
| 8265 | + | |
| 8266 | + | |
| 8267 | + | |
| 8268 | + | |
| 8269 | + | |
| 8270 | + | |
| 8271 | + | |
| 8272 | + | |
| 8273 | + | |
| 8274 | + | |
| 8275 | + | |
| 8276 | + | |
| 8277 | + | |
| 8278 | + | |
8255 | 8279 |
| |
8256 | 8280 |
| |
8257 | 8281 |
| |
|
Lines changed: 27 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5606 | 5606 |
| |
5607 | 5607 |
| |
5608 | 5608 |
| |
| 5609 | + | |
| 5610 | + | |
| 5611 | + | |
| 5612 | + | |
| 5613 | + | |
| 5614 | + | |
| 5615 | + | |
| 5616 | + | |
| 5617 | + | |
| 5618 | + | |
| 5619 | + | |
| 5620 | + | |
5609 | 5621 |
| |
5610 | 5622 |
| |
5611 | 5623 |
| |
| |||
6531 | 6543 |
| |
6532 | 6544 |
| |
6533 | 6545 |
| |
| 6546 | + | |
| 6547 | + | |
| 6548 | + | |
| 6549 | + | |
| 6550 | + | |
| 6551 | + | |
| 6552 | + | |
| 6553 | + | |
| 6554 | + | |
| 6555 | + | |
| 6556 | + | |
| 6557 | + | |
| 6558 | + | |
| 6559 | + | |
| 6560 | + | |
6534 | 6561 |
| |
6535 | 6562 |
| |
6536 | 6563 |
| |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1213 | 1213 |
| |
1214 | 1214 |
| |
1215 | 1215 |
| |
1216 |
| - | |
| 1216 | + | |
| 1217 | + | |
1217 | 1218 |
| |
1218 | 1219 |
| |
1219 | 1220 |
| |
| |||
1233 | 1234 |
| |
1234 | 1235 |
| |
1235 | 1236 |
| |
1236 |
| - | |
| 1237 | + | |
| 1238 | + | |
1237 | 1239 |
| |
1238 | 1240 |
| |
1239 | 1241 |
| |
|
Lines changed: 64 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
| 42 | + | |
42 | 43 |
| |
43 | 44 |
| |
44 | 45 |
| |
| |||
59 | 60 |
| |
60 | 61 |
| |
61 | 62 |
| |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
62 | 69 |
| |
63 | 70 |
| |
64 | 71 |
| |
| |||
70 | 77 |
| |
71 | 78 |
| |
72 | 79 |
| |
| 80 | + | |
73 | 81 |
| |
74 | 82 |
| |
75 | 83 |
| |
| |||
80 | 88 |
| |
81 | 89 |
| |
82 | 90 |
| |
| 91 | + | |
| 92 | + | |
| 93 | + | |
83 | 94 |
| |
84 | 95 |
| |
85 | 96 |
| |
| |||
2416 | 2427 |
| |
2417 | 2428 |
| |
2418 | 2429 |
| |
| 2430 | + | |
| 2431 | + | |
2419 | 2432 |
| |
2420 | 2433 |
| |
2421 | 2434 |
| |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
2422 | 2438 |
| |
2423 | 2439 |
| |
2424 | 2440 |
| |
2425 | 2441 |
| |
| 2442 | + | |
| 2443 | + | |
| 2444 | + | |
| 2445 | + | |
| 2446 | + | |
| 2447 | + | |
| 2448 | + | |
| 2449 | + | |
| 2450 | + | |
| 2451 | + | |
| 2452 | + | |
| 2453 | + | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
| 2457 | + | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
| 2463 | + | |
| 2464 | + | |
| 2465 | + | |
| 2466 | + | |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
| 2478 | + | |
| 2479 | + | |
| 2480 | + | |
| 2481 | + | |
| 2482 | + | |
| 2483 | + | |
| 2484 | + | |
| 2485 | + | |
| 2486 | + | |
| 2487 | + | |
| 2488 | + | |
| 2489 | + | |
2426 | 2490 |
| |
2427 | 2491 |
| |
2428 | 2492 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1094 | 1094 |
| |
1095 | 1095 |
| |
1096 | 1096 |
| |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
1097 | 1102 |
| |
1098 | 1103 |
| |
1099 | 1104 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1471 | 1471 |
| |
1472 | 1472 |
| |
1473 | 1473 |
| |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
1474 | 1483 |
| |
1475 | 1484 |
| |
1476 | 1485 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
635 | 635 |
| |
636 | 636 |
| |
637 | 637 |
| |
| 638 | + | |
638 | 639 |
| |
639 | 640 |
| |
640 | 641 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
60 |
| - | |
| 60 | + | |
61 | 61 |
| |
62 | 62 |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
| 31 | + | |
31 | 32 |
| |
32 | 33 |
| |
33 | 34 |
| |
| |||
46 | 47 |
| |
47 | 48 |
| |
48 | 49 |
| |
| 50 | + | |
49 | 51 |
| |
50 | 52 |
| |
51 | 53 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
303 | 303 |
| |
304 | 304 |
| |
305 | 305 |
| |
| 306 | + | |
306 | 307 |
| |
307 | 308 |
| |
308 | 309 |
| |
| |||
330 | 331 |
| |
331 | 332 |
| |
332 | 333 |
| |
| 334 | + | |
| 335 | + | |
333 | 336 |
| |
334 | 337 |
| |
335 | 338 |
| |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1932 | 1932 |
| |
1933 | 1933 |
| |
1934 | 1934 |
| |
1935 |
| - | |
| 1935 | + | |
| 1936 | + | |
1936 | 1937 |
| |
1937 | 1938 |
| |
1938 | 1939 |
| |
| |||
2062 | 2063 |
| |
2063 | 2064 |
| |
2064 | 2065 |
| |
2065 |
| - | |
| 2066 | + | |
| 2067 | + | |
2066 | 2068 |
| |
2067 | 2069 |
| |
2068 | 2070 |
| |
|
0 commit comments
Comments
(0)