forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2e8a0ed
committed
Add target "slru" to pg_stat_reset_shared()
Currently, pg_stat_reset_shared() cannot reset the counters in the viewpg_stat_slru even if it is a type of shared stats. This patch addssupport for a new value in pg_stat_reset_shared(), called "slru", ableto do that. Note that pg_stat_reset_shared(NULL) also resets SLRUcounters.There may be a point in removing pg_stat_reset_slru() that wasintroduced in28cac71 (v13~) as the new option overlaps with thisfunction, but we would lose the ability to reset individual SLRUcounters. This is left for future reconsideration.Author: Atsushi TorikoshiDiscussion:https://postgr.es/m/e3c25d72e81378e7b64f3c52e0306fc9@oss.nttdata.com1 parent816f105 commit2e8a0ed
File tree
4 files changed
+39
-2
lines changed- doc/src/sgml
- src
- backend/utils/adt
- test/regress
- expected
- sql
4 files changed
+39
-2
lines changedLines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4749 | 4749 |
| |
4750 | 4750 |
| |
4751 | 4751 |
| |
| 4752 | + | |
| 4753 | + | |
| 4754 | + | |
| 4755 | + | |
| 4756 | + | |
| 4757 | + | |
4752 | 4758 |
| |
4753 | 4759 |
| |
4754 | 4760 |
| |
|
Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1695 | 1695 |
| |
1696 | 1696 |
| |
1697 | 1697 |
| |
| 1698 | + | |
1698 | 1699 |
| |
1699 | 1700 |
| |
1700 | 1701 |
| |
| |||
1712 | 1713 |
| |
1713 | 1714 |
| |
1714 | 1715 |
| |
| 1716 | + | |
| 1717 | + | |
1715 | 1718 |
| |
1716 | 1719 |
| |
1717 | 1720 |
| |
1718 | 1721 |
| |
1719 | 1722 |
| |
1720 | 1723 |
| |
1721 |
| - | |
| 1724 | + | |
1722 | 1725 |
| |
1723 | 1726 |
| |
1724 | 1727 |
| |
|
Lines changed: 22 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
960 | 960 |
| |
961 | 961 |
| |
962 | 962 |
| |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
963 | 978 |
| |
964 | 979 |
| |
965 | 980 |
| |
| |||
1007 | 1022 |
| |
1008 | 1023 |
| |
1009 | 1024 |
| |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
1010 | 1031 |
| |
1011 | 1032 |
| |
1012 | 1033 |
| |
| |||
1016 | 1037 |
| |
1017 | 1038 |
| |
1018 | 1039 |
| |
1019 |
| - | |
| 1040 | + | |
1020 | 1041 |
| |
1021 | 1042 |
| |
1022 | 1043 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
482 | 482 |
| |
483 | 483 |
| |
484 | 484 |
| |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
485 | 491 |
| |
486 | 492 |
| |
487 | 493 |
| |
| |||
495 | 501 |
| |
496 | 502 |
| |
497 | 503 |
| |
| 504 | + | |
498 | 505 |
| |
499 | 506 |
| |
500 | 507 |
| |
|
0 commit comments
Comments
(0)