forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit30a6ed0
committed
Track per-relation cumulative time spent in [auto]vacuum and [auto]analyze
This commit adds four fields to the statistics of relations, aggregatingthe amount of time spent for each operation on a relation:- total_vacuum_time, for manual vacuum.- total_autovacuum_time, for vacuum done by the autovacuum daemon.- total_analyze_time, for manual analyze.- total_autoanalyze_time, for analyze done by the autovacuum daemon.This gives users the option to derive the average time spent for theseoperations with the help of the related "count" fields.Bump catalog version (for the catalog changes) and PGSTAT_FILE_FORMAT_ID(for the additions in PgStat_StatTabEntry).Author: Sami ImseihReviewed-by: Bertrand Drouvot, Michael PaquierDiscussion:https://postgr.es/m/CAA5RZ0uVOGBYmPEeGF2d1B_67tgNjKx_bKDuL+oUftuoz+=Y1g@mail.gmail.com1 parent5afaba6 commit30a6ed0
File tree
10 files changed
+141
-19
lines changed- doc/src/sgml
- src
- backend
- access/heap
- catalog
- commands
- utils
- activity
- adt
- include
- catalog
- test/regress/expected
10 files changed
+141
-19
lines changedLines changed: 38 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4053 | 4053 |
| |
4054 | 4054 |
| |
4055 | 4055 |
| |
| 4056 | + | |
| 4057 | + | |
| 4058 | + | |
| 4059 | + | |
| 4060 | + | |
| 4061 | + | |
| 4062 | + | |
| 4063 | + | |
| 4064 | + | |
| 4065 | + | |
| 4066 | + | |
| 4067 | + | |
| 4068 | + | |
| 4069 | + | |
| 4070 | + | |
| 4071 | + | |
| 4072 | + | |
| 4073 | + | |
| 4074 | + | |
| 4075 | + | |
| 4076 | + | |
| 4077 | + | |
| 4078 | + | |
| 4079 | + | |
| 4080 | + | |
| 4081 | + | |
| 4082 | + | |
| 4083 | + | |
| 4084 | + | |
| 4085 | + | |
| 4086 | + | |
| 4087 | + | |
| 4088 | + | |
| 4089 | + | |
| 4090 | + | |
| 4091 | + | |
| 4092 | + | |
| 4093 | + | |
4056 | 4094 |
| |
4057 | 4095 |
| |
4058 | 4096 |
| |
|
Lines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
386 | 386 |
| |
387 | 387 |
| |
388 | 388 |
| |
389 |
| - | |
390 | 389 |
| |
391 | 390 |
| |
392 | 391 |
| |
393 | 392 |
| |
394 | 393 |
| |
395 | 394 |
| |
396 | 395 |
| |
| 396 | + | |
| 397 | + | |
| 398 | + | |
397 | 399 |
| |
398 | 400 |
| |
399 | 401 |
| |
| |||
659 | 661 |
| |
660 | 662 |
| |
661 | 663 |
| |
662 |
| - | |
| 664 | + | |
| 665 | + | |
663 | 666 |
| |
664 | 667 |
| |
665 | 668 |
| |
|
Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
696 | 696 |
| |
697 | 697 |
| |
698 | 698 |
| |
699 |
| - | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
700 | 704 |
| |
701 | 705 |
| |
702 | 706 |
| |
|
Lines changed: 7 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
344 | 344 |
| |
345 | 345 |
| |
346 | 346 |
| |
347 |
| - | |
348 |
| - | |
| 347 | + | |
| 348 | + | |
349 | 349 |
| |
350 | 350 |
| |
351 | 351 |
| |
| |||
356 | 356 |
| |
357 | 357 |
| |
358 | 358 |
| |
359 |
| - | |
360 | 359 |
| |
361 | 360 |
| |
| 361 | + | |
| 362 | + | |
| 363 | + | |
362 | 364 |
| |
363 | 365 |
| |
364 | 366 |
| |
| |||
693 | 695 |
| |
694 | 696 |
| |
695 | 697 |
| |
696 |
| - | |
| 698 | + | |
697 | 699 |
| |
698 |
| - | |
| 700 | + | |
699 | 701 |
| |
700 | 702 |
| |
701 | 703 |
| |
|
Lines changed: 17 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
208 | 208 |
| |
209 | 209 |
| |
210 | 210 |
| |
211 |
| - | |
| 211 | + | |
| 212 | + | |
212 | 213 |
| |
213 | 214 |
| |
214 | 215 |
| |
215 | 216 |
| |
216 | 217 |
| |
217 | 218 |
| |
| 219 | + | |
218 | 220 |
| |
219 | 221 |
| |
220 | 222 |
| |
221 | 223 |
| |
222 | 224 |
| |
223 | 225 |
| |
| 226 | + | |
224 | 227 |
| |
225 | 228 |
| |
226 | 229 |
| |
| |||
248 | 251 |
| |
249 | 252 |
| |
250 | 253 |
| |
| 254 | + | |
251 | 255 |
| |
252 | 256 |
| |
253 | 257 |
| |
254 | 258 |
| |
255 | 259 |
| |
| 260 | + | |
256 | 261 |
| |
257 | 262 |
| |
258 | 263 |
| |
| |||
276 | 281 |
| |
277 | 282 |
| |
278 | 283 |
| |
279 |
| - | |
| 284 | + | |
280 | 285 |
| |
281 | 286 |
| |
282 | 287 |
| |
283 | 288 |
| |
284 | 289 |
| |
| 290 | + | |
| 291 | + | |
285 | 292 |
| |
286 | 293 |
| |
287 | 294 |
| |
| |||
315 | 322 |
| |
316 | 323 |
| |
317 | 324 |
| |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
318 | 329 |
| |
319 | 330 |
| |
320 | 331 |
| |
| |||
338 | 349 |
| |
339 | 350 |
| |
340 | 351 |
| |
341 |
| - | |
| 352 | + | |
342 | 353 |
| |
| 354 | + | |
343 | 355 |
| |
344 | 356 |
| |
345 | 357 |
| |
346 |
| - | |
| 358 | + | |
347 | 359 |
| |
| 360 | + | |
348 | 361 |
| |
349 | 362 |
| |
350 | 363 |
| |
|
Lines changed: 28 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
106 | 106 |
| |
107 | 107 |
| |
108 | 108 |
| |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
109 | 137 |
| |
110 | 138 |
| |
111 | 139 |
| |
|
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: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5543 | 5543 |
| |
5544 | 5544 |
| |
5545 | 5545 |
| |
| 5546 | + | |
| 5547 | + | |
| 5548 | + | |
| 5549 | + | |
| 5550 | + | |
| 5551 | + | |
| 5552 | + | |
| 5553 | + | |
| 5554 | + | |
| 5555 | + | |
| 5556 | + | |
| 5557 | + | |
| 5558 | + | |
| 5559 | + | |
| 5560 | + | |
| 5561 | + | |
5546 | 5562 |
| |
5547 | 5563 |
| |
5548 | 5564 |
| |
|
Lines changed: 9 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
212 | 212 |
| |
213 | 213 |
| |
214 | 214 |
| |
215 |
| - | |
| 215 | + | |
216 | 216 |
| |
217 | 217 |
| |
218 | 218 |
| |
| |||
465 | 465 |
| |
466 | 466 |
| |
467 | 467 |
| |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
468 | 473 |
| |
469 | 474 |
| |
470 | 475 |
| |
| |||
649 | 654 |
| |
650 | 655 |
| |
651 | 656 |
| |
652 |
| - | |
| 657 | + | |
| 658 | + | |
653 | 659 |
| |
654 | 660 |
| |
655 |
| - | |
| 661 | + | |
656 | 662 |
| |
657 | 663 |
| |
658 | 664 |
| |
|
Lines changed: 15 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1804 | 1804 |
| |
1805 | 1805 |
| |
1806 | 1806 |
| |
1807 |
| - | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
1808 | 1812 |
| |
1809 | 1813 |
| |
1810 | 1814 |
| |
| |||
2190 | 2194 |
| |
2191 | 2195 |
| |
2192 | 2196 |
| |
2193 |
| - | |
| 2197 | + | |
| 2198 | + | |
| 2199 | + | |
| 2200 | + | |
| 2201 | + | |
2194 | 2202 |
| |
2195 | 2203 |
| |
2196 | 2204 |
| |
| |||
2238 | 2246 |
| |
2239 | 2247 |
| |
2240 | 2248 |
| |
2241 |
| - | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
2242 | 2254 |
| |
2243 | 2255 |
| |
2244 | 2256 |
| |
|
0 commit comments
Comments
(0)