forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8e90ec5

Amit Kapila
Track statistics for streaming of changes from ReorderBuffer.
This adds the statistics about transactions streamed to the decodingoutput plugin from ReorderBuffer. Users can query thepg_stat_replication_slots view to check these stats and callpg_stat_reset_replication_slot to reset the stats of a particular slot.Users can pass NULL in pg_stat_reset_replication_slot to reset stats ofall the slots.Commit9868167 has added the basic infrastructure to capture the statsof slot and this commit extends the statistics collector to trackadditional information about slots.Bump the catversion as we have added new columns in the catalog entry.Author: Ajin Cherian and Amit KapilaReviewed-by: Sawada Masahiko and Dilip KumarDiscussion:https://postgr.es/m/CAA4eK1+chpEomLzgSoky-D31qev19AmECNiEAietPQUGEFhtVA@mail.gmail.com1 parent94bc27b commit8e90ec5
File tree
12 files changed
+111
-17
lines changed- doc/src/sgml
- src
- backend
- catalog
- postmaster
- replication
- logical
- utils/adt
- include
- catalog
- replication
- test/regress/expected
12 files changed
+111
-17
lines changedLines changed: 38 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2632 | 2632 |
| |
2633 | 2633 |
| |
2634 | 2634 |
| |
| 2635 | + | |
| 2636 | + | |
| 2637 | + | |
| 2638 | + | |
| 2639 | + | |
| 2640 | + | |
| 2641 | + | |
| 2642 | + | |
| 2643 | + | |
| 2644 | + | |
| 2645 | + | |
| 2646 | + | |
| 2647 | + | |
| 2648 | + | |
| 2649 | + | |
| 2650 | + | |
| 2651 | + | |
| 2652 | + | |
| 2653 | + | |
| 2654 | + | |
| 2655 | + | |
| 2656 | + | |
| 2657 | + | |
| 2658 | + | |
| 2659 | + | |
| 2660 | + | |
| 2661 | + | |
| 2662 | + | |
| 2663 | + | |
| 2664 | + | |
| 2665 | + | |
| 2666 | + | |
| 2667 | + | |
| 2668 | + | |
| 2669 | + | |
| 2670 | + | |
| 2671 | + | |
| 2672 | + | |
2635 | 2673 |
| |
2636 | 2674 |
| |
2637 | 2675 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
802 | 802 |
| |
803 | 803 |
| |
804 | 804 |
| |
| 805 | + | |
| 806 | + | |
| 807 | + | |
805 | 808 |
| |
806 | 809 |
| |
807 | 810 |
| |
|
Lines changed: 10 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1708 | 1708 |
| |
1709 | 1709 |
| |
1710 | 1710 |
| |
1711 |
| - | |
| 1711 | + | |
1712 | 1712 |
| |
1713 | 1713 |
| |
1714 | 1714 |
| |
| |||
1721 | 1721 |
| |
1722 | 1722 |
| |
1723 | 1723 |
| |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
1724 | 1727 |
| |
1725 | 1728 |
| |
1726 | 1729 |
| |
| |||
6892 | 6895 |
| |
6893 | 6896 |
| |
6894 | 6897 |
| |
| 6898 | + | |
| 6899 | + | |
| 6900 | + | |
6895 | 6901 |
| |
6896 | 6902 |
| |
6897 | 6903 |
| |
| |||
7125 | 7131 |
| |
7126 | 7132 |
| |
7127 | 7133 |
| |
| 7134 | + | |
| 7135 | + | |
| 7136 | + | |
7128 | 7137 |
| |
7129 | 7138 |
| |
7130 | 7139 |
| |
|
Lines changed: 13 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1471 | 1471 |
| |
1472 | 1472 |
| |
1473 | 1473 |
| |
1474 |
| - | |
1475 |
| - | |
| 1474 | + | |
| 1475 | + | |
1476 | 1476 |
| |
1477 |
| - | |
| 1477 | + | |
1478 | 1478 |
| |
1479 | 1479 |
| |
1480 |
| - | |
| 1480 | + | |
1481 | 1481 |
| |
1482 | 1482 |
| |
1483 | 1483 |
| |
1484 |
| - | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
1485 | 1488 |
| |
1486 | 1489 |
| |
1487 |
| - | |
| 1490 | + | |
| 1491 | + | |
1488 | 1492 |
| |
1489 | 1493 |
| |
1490 | 1494 |
| |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
1491 | 1498 |
|
Lines changed: 20 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
346 | 346 |
| |
347 | 347 |
| |
348 | 348 |
| |
| 349 | + | |
| 350 | + | |
| 351 | + | |
349 | 352 |
| |
350 | 353 |
| |
351 | 354 |
| |
| |||
3482 | 3485 |
| |
3483 | 3486 |
| |
3484 | 3487 |
| |
| 3488 | + | |
| 3489 | + | |
3485 | 3490 |
| |
3486 | 3491 |
| |
3487 | 3492 |
| |
| |||
3562 | 3567 |
| |
3563 | 3568 |
| |
3564 | 3569 |
| |
| 3570 | + | |
| 3571 | + | |
| 3572 | + | |
| 3573 | + | |
| 3574 | + | |
| 3575 | + | |
| 3576 | + | |
| 3577 | + | |
| 3578 | + | |
3565 | 3579 |
| |
3566 | 3580 |
| |
3567 | 3581 |
| |
3568 | 3582 |
| |
| 3583 | + | |
| 3584 | + | |
| 3585 | + | |
| 3586 | + | |
| 3587 | + | |
| 3588 | + | |
3569 | 3589 |
| |
3570 | 3590 |
| |
3571 | 3591 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
320 | 320 |
| |
321 | 321 |
| |
322 | 322 |
| |
323 |
| - | |
| 323 | + | |
324 | 324 |
| |
325 | 325 |
| |
326 | 326 |
| |
|
Lines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2153 | 2153 |
| |
2154 | 2154 |
| |
2155 | 2155 |
| |
2156 |
| - | |
| 2156 | + | |
2157 | 2157 |
| |
2158 | 2158 |
| |
2159 | 2159 |
| |
| |||
2201 | 2201 |
| |
2202 | 2202 |
| |
2203 | 2203 |
| |
| 2204 | + | |
| 2205 | + | |
| 2206 | + | |
2204 | 2207 |
| |
2205 | 2208 |
| |
2206 |
| - | |
| 2209 | + | |
2207 | 2210 |
| |
2208 |
| - | |
| 2211 | + | |
2209 | 2212 |
| |
2210 | 2213 |
| |
2211 | 2214 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 |
| - | |
| 56 | + | |
57 | 57 |
| |
58 | 58 |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5260 | 5260 |
| |
5261 | 5261 |
| |
5262 | 5262 |
| |
5263 |
| - | |
5264 |
| - | |
5265 |
| - | |
| 5263 | + | |
| 5264 | + | |
| 5265 | + | |
5266 | 5266 |
| |
5267 | 5267 |
| |
5268 | 5268 |
| |
|
Lines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
492 | 492 |
| |
493 | 493 |
| |
494 | 494 |
| |
| 495 | + | |
| 496 | + | |
| 497 | + | |
495 | 498 |
| |
496 | 499 |
| |
497 | 500 |
| |
| |||
823 | 826 |
| |
824 | 827 |
| |
825 | 828 |
| |
| 829 | + | |
| 830 | + | |
| 831 | + | |
826 | 832 |
| |
827 | 833 |
| |
828 | 834 |
| |
| |||
1387 | 1393 |
| |
1388 | 1394 |
| |
1389 | 1395 |
| |
1390 |
| - | |
| 1396 | + | |
1391 | 1397 |
| |
1392 | 1398 |
| |
1393 | 1399 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
551 | 551 |
| |
552 | 552 |
| |
553 | 553 |
| |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
554 | 559 |
| |
555 | 560 |
| |
556 | 561 |
| |
|
Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2022 | 2022 |
| |
2023 | 2023 |
| |
2024 | 2024 |
| |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
2025 | 2028 |
| |
2026 |
| - | |
| 2029 | + | |
2027 | 2030 |
| |
2028 | 2031 |
| |
2029 | 2032 |
| |
|
0 commit comments
Comments
(0)