forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit23c8c0c
committed
Add ability to reset all shared stats types in pg_stat_reset_shared()
Currently, pg_stat_reset_shared() can use an argument to specify thetarget of statistics to reset, doing nothing for NULL as it is strict.This patch adds to pg_stat_reset_shared() the possibility to reset allthe stats types already handled in this function rather than do nothingif the argument value given is NULL or if nothing is specified(proisstrict is switched to false). Like previously, SLRUs are notincluded in what gets reset.The idea to use NULL or no argument to control if all the shared statsalready covered by this function should be reset has been proposed byAndres Freund.Bump catalog version.Author: Atsushi TorikoshiReviewed-by: Kyotaro Horiguchi, Michael Paquier, Bharath Rupireddy,Matthias van de MeentDiscussion:https://postgr.es/m/4291a55137ddda77cf7cc5f46e846daf@oss.nttdata.com1 parenta9f19c1 commit23c8c0c
File tree
7 files changed
+47
-19
lines changed- doc/src/sgml
- src
- backend
- catalog
- utils/adt
- include/catalog
- test/regress
- expected
- sql
7 files changed
+47
-19
lines changedLines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4712 | 4712 |
| |
4713 | 4713 |
| |
4714 | 4714 |
| |
4715 |
| - | |
| 4715 | + | |
4716 | 4716 |
| |
4717 | 4717 |
| |
4718 | 4718 |
| |
| |||
4730 | 4730 |
| |
4731 | 4731 |
| |
4732 | 4732 |
| |
| 4733 | + | |
| 4734 | + | |
| 4735 | + | |
4733 | 4736 |
| |
4734 | 4737 |
| |
4735 | 4738 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
621 | 621 |
| |
622 | 622 |
| |
623 | 623 |
| |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
624 | 631 |
| |
625 | 632 |
| |
626 | 633 |
| |
|
Lines changed: 16 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1685 | 1685 |
| |
1686 | 1686 |
| |
1687 | 1687 |
| |
1688 |
| - | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
1689 | 1704 |
| |
1690 | 1705 |
| |
1691 | 1706 |
| |
|
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: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5881 | 5881 |
| |
5882 | 5882 |
| |
5883 | 5883 |
| |
5884 |
| - | |
5885 |
| - | |
| 5884 | + | |
| 5885 | + | |
| 5886 | + | |
5886 | 5887 |
| |
5887 | 5888 |
| |
5888 | 5889 |
| |
|
Lines changed: 8 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
975 | 975 |
| |
976 | 976 |
| |
977 | 977 |
| |
978 |
| - | |
979 |
| - | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
980 | 981 |
| |
981 | 982 |
| |
982 | 983 |
| |
983 | 984 |
| |
984 | 985 |
| |
985 |
| - | |
| 986 | + | |
986 | 987 |
| |
987 | 988 |
| |
988 | 989 |
| |
989 | 990 |
| |
990 | 991 |
| |
991 |
| - | |
| 992 | + | |
992 | 993 |
| |
993 | 994 |
| |
994 | 995 |
| |
995 | 996 |
| |
996 | 997 |
| |
997 |
| - | |
| 998 | + | |
998 | 999 |
| |
999 | 1000 |
| |
1000 | 1001 |
| |
1001 | 1002 |
| |
1002 | 1003 |
| |
1003 |
| - | |
| 1004 | + | |
1004 | 1005 |
| |
1005 | 1006 |
| |
1006 | 1007 |
| |
1007 | 1008 |
| |
1008 | 1009 |
| |
1009 |
| - | |
| 1010 | + | |
1010 | 1011 |
| |
1011 | 1012 |
| |
1012 | 1013 |
| |
|
Lines changed: 8 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
488 | 488 |
| |
489 | 489 |
| |
490 | 490 |
| |
491 |
| - | |
492 |
| - | |
493 |
| - | |
494 |
| - | |
495 |
| - | |
496 |
| - | |
497 |
| - | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
498 | 499 |
| |
499 | 500 |
| |
500 | 501 |
| |
|
0 commit comments
Comments
(0)