forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitce5c620
committed
Add pgstat_drop_matching_entries() to pgstats
This allows users of the cumulative statistics to drop entries in theshared hash stats table, deleting as well local references. Callers ofthis function can optionally define a callback able to filter whichentries to drop, similarly to pgstat_reset_matching_entries() with itscallback do_reset().pgstat_drop_all_entries() is refactored so as it uses this new function.Author: Lukas FittiDiscussion:https://postgr.es/m/CAP53PkwuFbo3NkwZgxwNRMjMfqPEqidD-SggaoQ4ijotBVLJAA@mail.gmail.com1 parent1e380fa commitce5c620
File tree
2 files changed
+32
-1
lines changed- src
- backend/utils/activity
- include/utils
2 files changed
+32
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
993 | 993 |
| |
994 | 994 |
| |
995 | 995 |
| |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
996 | 1000 |
| |
997 |
| - | |
| 1001 | + | |
| 1002 | + | |
998 | 1003 |
| |
999 | 1004 |
| |
1000 | 1005 |
| |
1001 | 1006 |
| |
1002 | 1007 |
| |
| 1008 | + | |
1003 | 1009 |
| |
1004 | 1010 |
| |
1005 | 1011 |
| |
1006 | 1012 |
| |
1007 | 1013 |
| |
1008 | 1014 |
| |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
1009 | 1029 |
| |
1010 | 1030 |
| |
1011 | 1031 |
| |
| |||
1015 | 1035 |
| |
1016 | 1036 |
| |
1017 | 1037 |
| |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
1018 | 1047 |
| |
1019 | 1048 |
| |
1020 | 1049 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
718 | 718 |
| |
719 | 719 |
| |
720 | 720 |
| |
| 721 | + | |
| 722 | + | |
721 | 723 |
| |
722 | 724 |
| |
723 | 725 |
| |
|
0 commit comments
Comments
(0)