File tree 2 files changed +25
-0
lines changed
2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 33
33
/* Default directory to store temporary statistics data in */
34
34
#define PG_STAT_TMP_DIR "pg_stat_tmp"
35
35
36
+ /* The types of statistics entries */
37
+ typedef enum PgStat_Kind
38
+ {
39
+ /* use 0 for INVALID, to catch zero-initialized data */
40
+ PGSTAT_KIND_INVALID = 0 ,
41
+
42
+ /* stats for variable-numbered objects */
43
+ PGSTAT_KIND_DATABASE , /* database-wide statistics */
44
+ PGSTAT_KIND_RELATION , /* per-table statistics */
45
+ PGSTAT_KIND_FUNCTION , /* per-function statistics */
46
+ PGSTAT_KIND_REPLSLOT , /* per-slot statistics */
47
+ PGSTAT_KIND_SUBSCRIPTION , /* per-subscription statistics */
48
+
49
+ /* stats for fixed-numbered objects */
50
+ PGSTAT_KIND_ARCHIVER ,
51
+ PGSTAT_KIND_BGWRITER ,
52
+ PGSTAT_KIND_CHECKPOINTER ,
53
+ PGSTAT_KIND_SLRU ,
54
+ PGSTAT_KIND_WAL ,
55
+ } PgStat_Kind ;
56
+
57
+ #define PGSTAT_KIND_FIRST_VALID PGSTAT_KIND_DATABASE
58
+ #define PGSTAT_KIND_LAST PGSTAT_KIND_WAL
59
+ #define PGSTAT_NUM_KINDS (PGSTAT_KIND_LAST + 1)
36
60
37
61
/* Values for track_functions GUC variable --- order is significant! */
38
62
typedef enum TrackFunctionsLevel
Original file line number Diff line number Diff line change @@ -1942,6 +1942,7 @@ PgStat_FunctionCallUsage
1942
1942
PgStat_FunctionCounts
1943
1943
PgStat_FunctionEntry
1944
1944
PgStat_GlobalStats
1945
+ PgStat_Kind
1945
1946
PgStat_Msg
1946
1947
PgStat_MsgAnalyze
1947
1948
PgStat_MsgAnlAncestors
You can’t perform that action at this time.
0 commit comments