forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3188a45
committed
Switch PgStat_Kind from an enum to a uint32 type
A follow-up patch is planned to make cumulative statistics pluggable,and using a type is useful in the internal routines used by pgstats asPgStat_Kind may have a value that was not originally in the enum removedhere, once made pluggable.While on it, this commit switches pgstat_is_kind_valid() to usePgStat_Kind rather than an int, to be more consistent with its existingcallers. Some loops based on the stats kind IDs are switched to usePgStat_Kind rather than int, for consistency with the new time.Author: Michael PaquierReviewed-by: Dmitry Dolgov, Bertrand DrouvotDiscussion:https://postgr.es/m/Zmqm9j5EO0I4W8dx@paquier.xyz1 parentb860848 commit3188a45
File tree
3 files changed
+27
-28
lines changed- src
- backend/utils/activity
- include
3 files changed
+27
-28
lines changedLines changed: 7 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
183 | 183 |
| |
184 | 184 |
| |
185 | 185 |
| |
186 |
| - | |
| 186 | + | |
187 | 187 |
| |
188 | 188 |
| |
189 | 189 |
| |
| |||
1089 | 1089 |
| |
1090 | 1090 |
| |
1091 | 1091 |
| |
1092 |
| - | |
| 1092 | + | |
1093 | 1093 |
| |
1094 | 1094 |
| |
1095 | 1095 |
| |
| |||
1286 | 1286 |
| |
1287 | 1287 |
| |
1288 | 1288 |
| |
1289 |
| - | |
| 1289 | + | |
1290 | 1290 |
| |
1291 | 1291 |
| |
1292 | 1292 |
| |
| |||
1299 | 1299 |
| |
1300 | 1300 |
| |
1301 | 1301 |
| |
1302 |
| - | |
| 1302 | + | |
1303 | 1303 |
| |
1304 |
| - | |
| 1304 | + | |
1305 | 1305 |
| |
1306 | 1306 |
| |
1307 | 1307 |
| |
| |||
1393 | 1393 |
| |
1394 | 1394 |
| |
1395 | 1395 |
| |
1396 |
| - | |
| 1396 | + | |
1397 | 1397 |
| |
1398 | 1398 |
| |
1399 | 1399 |
| |
| |||
1777 | 1777 |
| |
1778 | 1778 |
| |
1779 | 1779 |
| |
1780 |
| - | |
| 1780 | + | |
1781 | 1781 |
| |
1782 | 1782 |
| |
1783 | 1783 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
197 | 197 |
| |
198 | 198 |
| |
199 | 199 |
| |
200 |
| - | |
| 200 | + | |
201 | 201 |
| |
202 | 202 |
| |
203 | 203 |
| |
|
Lines changed: 19 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
56 | 55 |
| |
57 | 56 |
| |
58 | 57 |
| |
|
0 commit comments
Comments
(0)