forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3d51cb5
committed
Rename some support functions for pgstat* views.
Presently, pgstat_fetch_stat_beentry() accepts a session's backendID as its argument, and pgstat_fetch_stat_local_beentry() accepts a1-based index in an internal array as its argument. The former istypically used wherever a user must provide a backend ID, and thelatter is usually used internally when looping over all entries inthe array. This difference was first introduced byd7e39d7.Before that commit, both functions accepted a 1-based index to theinternal array.This commit renames these two functions to make it clear whetherthey use the backend ID or the 1-based index to look up the entry.This is preparatory work for a follow-up change that will introducea function for looking up a LocalPgBackendStatus using a backendID.Reviewed-by: Ian Barwick, Sami Imseih, Michael Paquier, Robert HaasDiscussion:https://postgr.es/m/CAB8KJ%3Dj-ACb3H4L9a_b3ZG3iCYDW5aEu3WsPAzkm2S7JzS1Few%40mail.gmail.comBackpatch-through: 161 parentfe39f43 commit3d51cb5
File tree
3 files changed
+34
-34
lines changed- src
- backend/utils
- activity
- adt
- include/utils
3 files changed
+34
-34
lines changedLines changed: 14 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
849 | 849 |
| |
850 | 850 |
| |
851 | 851 |
| |
852 |
| - | |
853 |
| - | |
| 852 | + | |
| 853 | + | |
854 | 854 |
| |
855 | 855 |
| |
856 | 856 |
| |
| |||
1073 | 1073 |
| |
1074 | 1074 |
| |
1075 | 1075 |
| |
1076 |
| - | |
| 1076 | + | |
1077 | 1077 |
| |
1078 | 1078 |
| |
1079 | 1079 |
| |
1080 | 1080 |
| |
1081 | 1081 |
| |
1082 | 1082 |
| |
1083 |
| - | |
| 1083 | + | |
1084 | 1084 |
| |
1085 | 1085 |
| |
1086 | 1086 |
| |
1087 | 1087 |
| |
1088 | 1088 |
| |
1089 | 1089 |
| |
1090 |
| - | |
| 1090 | + | |
1091 | 1091 |
| |
1092 | 1092 |
| |
1093 | 1093 |
| |
| |||
1111 | 1111 |
| |
1112 | 1112 |
| |
1113 | 1113 |
| |
1114 |
| - | |
| 1114 | + | |
1115 | 1115 |
| |
1116 |
| - | |
1117 |
| - | |
| 1116 | + | |
| 1117 | + | |
1118 | 1118 |
| |
1119 |
| - | |
1120 |
| - | |
| 1119 | + | |
| 1120 | + | |
1121 | 1121 |
| |
1122 | 1122 |
| |
1123 | 1123 |
| |
1124 | 1124 |
| |
1125 | 1125 |
| |
1126 | 1126 |
| |
1127 | 1127 |
| |
1128 |
| - | |
| 1128 | + | |
1129 | 1129 |
| |
1130 | 1130 |
| |
1131 | 1131 |
| |
1132 |
| - | |
| 1132 | + | |
1133 | 1133 |
| |
1134 | 1134 |
| |
1135 |
| - | |
| 1135 | + | |
1136 | 1136 |
| |
1137 | 1137 |
| |
1138 | 1138 |
| |
| |||
1141 | 1141 |
| |
1142 | 1142 |
| |
1143 | 1143 |
| |
1144 |
| - | |
| 1144 | + | |
1145 | 1145 |
| |
1146 | 1146 |
| |
1147 | 1147 |
| |
|
Lines changed: 18 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
211 | 211 |
| |
212 | 212 |
| |
213 | 213 |
| |
214 |
| - | |
| 214 | + | |
215 | 215 |
| |
216 | 216 |
| |
217 | 217 |
| |
| |||
264 | 264 |
| |
265 | 265 |
| |
266 | 266 |
| |
267 |
| - | |
| 267 | + | |
268 | 268 |
| |
269 | 269 |
| |
270 | 270 |
| |
| |||
325 | 325 |
| |
326 | 326 |
| |
327 | 327 |
| |
328 |
| - | |
| 328 | + | |
329 | 329 |
| |
330 | 330 |
| |
331 | 331 |
| |
| |||
672 | 672 |
| |
673 | 673 |
| |
674 | 674 |
| |
675 |
| - | |
| 675 | + | |
676 | 676 |
| |
677 | 677 |
| |
678 | 678 |
| |
| |||
685 | 685 |
| |
686 | 686 |
| |
687 | 687 |
| |
688 |
| - | |
| 688 | + | |
689 | 689 |
| |
690 | 690 |
| |
691 | 691 |
| |
| |||
698 | 698 |
| |
699 | 699 |
| |
700 | 700 |
| |
701 |
| - | |
| 701 | + | |
702 | 702 |
| |
703 | 703 |
| |
704 | 704 |
| |
| |||
727 | 727 |
| |
728 | 728 |
| |
729 | 729 |
| |
730 |
| - | |
| 730 | + | |
731 | 731 |
| |
732 | 732 |
| |
733 | 733 |
| |
| |||
752 | 752 |
| |
753 | 753 |
| |
754 | 754 |
| |
755 |
| - | |
| 755 | + | |
756 | 756 |
| |
757 | 757 |
| |
758 | 758 |
| |
| |||
776 | 776 |
| |
777 | 777 |
| |
778 | 778 |
| |
779 |
| - | |
| 779 | + | |
780 | 780 |
| |
781 | 781 |
| |
782 | 782 |
| |
| |||
797 | 797 |
| |
798 | 798 |
| |
799 | 799 |
| |
800 |
| - | |
| 800 | + | |
801 | 801 |
| |
802 | 802 |
| |
803 | 803 |
| |
| |||
818 | 818 |
| |
819 | 819 |
| |
820 | 820 |
| |
821 |
| - | |
| 821 | + | |
822 | 822 |
| |
823 | 823 |
| |
824 | 824 |
| |
| |||
844 | 844 |
| |
845 | 845 |
| |
846 | 846 |
| |
847 |
| - | |
| 847 | + | |
848 | 848 |
| |
849 | 849 |
| |
850 | 850 |
| |
| |||
866 | 866 |
| |
867 | 867 |
| |
868 | 868 |
| |
869 |
| - | |
| 869 | + | |
870 | 870 |
| |
871 | 871 |
| |
872 | 872 |
| |
| |||
890 | 890 |
| |
891 | 891 |
| |
892 | 892 |
| |
893 |
| - | |
| 893 | + | |
894 | 894 |
| |
895 | 895 |
| |
896 | 896 |
| |
| |||
935 | 935 |
| |
936 | 936 |
| |
937 | 937 |
| |
938 |
| - | |
| 938 | + | |
939 | 939 |
| |
940 | 940 |
| |
941 | 941 |
| |
| |||
978 | 978 |
| |
979 | 979 |
| |
980 | 980 |
| |
981 |
| - | |
| 981 | + | |
982 | 982 |
| |
983 | 983 |
| |
984 |
| - | |
| 984 | + | |
985 | 985 |
| |
986 |
| - | |
| 986 | + | |
987 | 987 |
| |
988 | 988 |
| |
989 | 989 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
333 | 333 |
| |
334 | 334 |
| |
335 | 335 |
| |
336 |
| - | |
337 |
| - | |
| 336 | + | |
| 337 | + | |
338 | 338 |
| |
339 | 339 |
| |
340 | 340 |
| |
|
0 commit comments
Comments
(0)