- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit12915a5
committed
Enhance checkpointer restartpoint statistics
Bhis commit introduces enhancements to the pg_stat_checkpointer view by addingthree new columns: restartpoints_timed, restartpoints_req, andrestartpoints_done. These additions aim to improve the visibility andmonitoring of restartpoint processes on replicas.Previously, it was challenging to differentiate between successful and failedrestartpoint requests. This limitation arises because restartpoints on replicasare dependent on checkpoint records from the primary, and cannot occur morefrequently than these checkpoints.The new columns allow for clear distinction and tracking of restartpointrequests, their triggers, and successful completions. This enhancement aidsdatabase administrators and developers in better understanding and diagnosingissues related to restartpoint behavior, particularly in scenarios whererestartpoint requests may fail.System catalog is changed. Catversion is bumped.Discussion:https://postgr.es/m/99b2ccd1-a77a-962a-0837-191cdf56c2b9%40inbox.ruAuthor: Anton A. MelnikovReviewed-by: Kyotaro Horiguchi, Alexander Korotkov1 parent64e77b4 commit12915a5
File tree
10 files changed
+134
-9
lines changed- doc/src/sgml
- src
- backend
- catalog
- postmaster
- utils
- activity
- adt
- include
- catalog
- test/regress/expected
10 files changed
+134
-9
lines changedLines changed: 27 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2982 | 2982 |
| |
2983 | 2983 |
| |
2984 | 2984 |
| |
| 2985 | + | |
| 2986 | + | |
| 2987 | + | |
| 2988 | + | |
| 2989 | + | |
| 2990 | + | |
| 2991 | + | |
| 2992 | + | |
| 2993 | + | |
| 2994 | + | |
| 2995 | + | |
| 2996 | + | |
| 2997 | + | |
| 2998 | + | |
| 2999 | + | |
| 3000 | + | |
| 3001 | + | |
| 3002 | + | |
| 3003 | + | |
| 3004 | + | |
| 3005 | + | |
| 3006 | + | |
| 3007 | + | |
| 3008 | + | |
| 3009 | + | |
| 3010 | + | |
| 3011 | + | |
2985 | 3012 |
| |
2986 | 3013 |
| |
2987 | 3014 |
| |
|
Lines changed: 33 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
655 | 655 |
| |
656 | 656 |
| |
657 | 657 |
| |
658 |
| - | |
659 |
| - | |
660 |
| - | |
661 |
| - | |
662 |
| - | |
663 |
| - | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
664 | 673 |
| |
665 | 674 |
| |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
666 | 693 |
| |
667 | 694 |
| |
668 | 695 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1141 | 1141 |
| |
1142 | 1142 |
| |
1143 | 1143 |
| |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
1144 | 1147 |
| |
1145 | 1148 |
| |
1146 | 1149 |
| |
|
Lines changed: 25 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
340 | 340 |
| |
341 | 341 |
| |
342 | 342 |
| |
| 343 | + | |
| 344 | + | |
343 | 345 |
| |
344 | 346 |
| |
345 | 347 |
| |
| |||
358 | 360 |
| |
359 | 361 |
| |
360 | 362 |
| |
361 |
| - | |
| 363 | + | |
362 | 364 |
| |
363 | 365 |
| |
364 | 366 |
| |
| |||
372 | 374 |
| |
373 | 375 |
| |
374 | 376 |
| |
375 |
| - | |
| 377 | + | |
376 | 378 |
| |
377 | 379 |
| |
378 | 380 |
| |
| |||
408 | 410 |
| |
409 | 411 |
| |
410 | 412 |
| |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
411 | 431 |
| |
412 | 432 |
| |
413 | 433 |
| |
| |||
471 | 491 |
| |
472 | 492 |
| |
473 | 493 |
| |
| 494 | + | |
| 495 | + | |
| 496 | + | |
474 | 497 |
| |
475 | 498 |
| |
476 | 499 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 |
| |
53 | 56 |
| |
54 | 57 |
| |
| |||
116 | 119 |
| |
117 | 120 |
| |
118 | 121 |
| |
| 122 | + | |
| 123 | + | |
| 124 | + | |
119 | 125 |
| |
120 | 126 |
| |
121 | 127 |
| |
|
Lines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1193 | 1193 |
| |
1194 | 1194 |
| |
1195 | 1195 |
| |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
1196 | 1214 |
| |
1197 | 1215 |
| |
1198 | 1216 |
| |
|
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: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5721 | 5721 |
| |
5722 | 5722 |
| |
5723 | 5723 |
| |
| 5724 | + | |
| 5725 | + | |
| 5726 | + | |
| 5727 | + | |
| 5728 | + | |
| 5729 | + | |
| 5730 | + | |
| 5731 | + | |
| 5732 | + | |
| 5733 | + | |
| 5734 | + | |
| 5735 | + | |
| 5736 | + | |
| 5737 | + | |
| 5738 | + | |
5724 | 5739 |
| |
5725 | 5740 |
| |
5726 | 5741 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
262 | 262 |
| |
263 | 263 |
| |
264 | 264 |
| |
| 265 | + | |
| 266 | + | |
| 267 | + | |
265 | 268 |
| |
266 | 269 |
| |
267 | 270 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1822 | 1822 |
| |
1823 | 1823 |
| |
1824 | 1824 |
| |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
1825 | 1828 |
| |
1826 | 1829 |
| |
1827 | 1830 |
| |
|
0 commit comments
Comments
(0)