@@ -50,58 +50,58 @@ CppConcat(pg_stat_get_,stat)(PG_FUNCTION_ARGS) \
50
50
result = (int64) (tabentry->stat); \
51
51
\
52
52
PG_RETURN_INT64(result); \
53
- } \
53
+ }
54
54
55
55
/* pg_stat_get_analyze_count */
56
- PG_STAT_GET_RELENTRY_INT64 (analyze_count );
56
+ PG_STAT_GET_RELENTRY_INT64 (analyze_count )
57
57
58
58
/* pg_stat_get_autoanalyze_count */
59
- PG_STAT_GET_RELENTRY_INT64 (autoanalyze_count );
59
+ PG_STAT_GET_RELENTRY_INT64 (autoanalyze_count )
60
60
61
61
/* pg_stat_get_autovacuum_count */
62
- PG_STAT_GET_RELENTRY_INT64 (autovacuum_count );
62
+ PG_STAT_GET_RELENTRY_INT64 (autovacuum_count )
63
63
64
64
/* pg_stat_get_blocks_fetched */
65
- PG_STAT_GET_RELENTRY_INT64 (blocks_fetched );
65
+ PG_STAT_GET_RELENTRY_INT64 (blocks_fetched )
66
66
67
67
/* pg_stat_get_blocks_hit */
68
- PG_STAT_GET_RELENTRY_INT64 (blocks_hit );
68
+ PG_STAT_GET_RELENTRY_INT64 (blocks_hit )
69
69
70
70
/* pg_stat_get_dead_tuples */
71
- PG_STAT_GET_RELENTRY_INT64 (dead_tuples );
71
+ PG_STAT_GET_RELENTRY_INT64 (dead_tuples )
72
72
73
73
/* pg_stat_get_ins_since_vacuum */
74
- PG_STAT_GET_RELENTRY_INT64 (ins_since_vacuum );
74
+ PG_STAT_GET_RELENTRY_INT64 (ins_since_vacuum )
75
75
76
76
/* pg_stat_get_live_tuples */
77
- PG_STAT_GET_RELENTRY_INT64 (live_tuples );
77
+ PG_STAT_GET_RELENTRY_INT64 (live_tuples )
78
78
79
79
/* pg_stat_get_mods_since_analyze */
80
- PG_STAT_GET_RELENTRY_INT64 (mod_since_analyze );
80
+ PG_STAT_GET_RELENTRY_INT64 (mod_since_analyze )
81
81
82
82
/* pg_stat_get_numscans */
83
- PG_STAT_GET_RELENTRY_INT64 (numscans );
83
+ PG_STAT_GET_RELENTRY_INT64 (numscans )
84
84
85
85
/* pg_stat_get_tuples_deleted */
86
- PG_STAT_GET_RELENTRY_INT64 (tuples_deleted );
86
+ PG_STAT_GET_RELENTRY_INT64 (tuples_deleted )
87
87
88
88
/* pg_stat_get_tuples_fetched */
89
- PG_STAT_GET_RELENTRY_INT64 (tuples_fetched );
89
+ PG_STAT_GET_RELENTRY_INT64 (tuples_fetched )
90
90
91
91
/* pg_stat_get_tuples_hot_updated */
92
- PG_STAT_GET_RELENTRY_INT64 (tuples_hot_updated );
92
+ PG_STAT_GET_RELENTRY_INT64 (tuples_hot_updated )
93
93
94
94
/* pg_stat_get_tuples_inserted */
95
- PG_STAT_GET_RELENTRY_INT64 (tuples_inserted );
95
+ PG_STAT_GET_RELENTRY_INT64 (tuples_inserted )
96
96
97
97
/* pg_stat_get_tuples_returned */
98
- PG_STAT_GET_RELENTRY_INT64 (tuples_returned );
98
+ PG_STAT_GET_RELENTRY_INT64 (tuples_returned )
99
99
100
100
/* pg_stat_get_tuples_updated */
101
- PG_STAT_GET_RELENTRY_INT64 (tuples_updated );
101
+ PG_STAT_GET_RELENTRY_INT64 (tuples_updated )
102
102
103
103
/* pg_stat_get_vacuum_count */
104
- PG_STAT_GET_RELENTRY_INT64 (vacuum_count );
104
+ PG_STAT_GET_RELENTRY_INT64 (vacuum_count )
105
105
106
106
#define PG_STAT_GET_RELENTRY_TIMESTAMPTZ (stat ) \
107
107
Datum \
@@ -120,22 +120,22 @@ CppConcat(pg_stat_get_,stat)(PG_FUNCTION_ARGS) \
120
120
PG_RETURN_NULL (); \
121
121
else \
122
122
PG_RETURN_TIMESTAMPTZ (result ); \
123
- } \
123
+ }
124
124
125
125
/* pg_stat_get_last_analyze_time */
126
- PG_STAT_GET_RELENTRY_TIMESTAMPTZ (last_analyze_time );
126
+ PG_STAT_GET_RELENTRY_TIMESTAMPTZ (last_analyze_time )
127
127
128
128
/* pg_stat_get_last_autoanalyze_time */
129
- PG_STAT_GET_RELENTRY_TIMESTAMPTZ (last_autoanalyze_time );
129
+ PG_STAT_GET_RELENTRY_TIMESTAMPTZ (last_autoanalyze_time )
130
130
131
131
/* pg_stat_get_last_autovacuum_time */
132
- PG_STAT_GET_RELENTRY_TIMESTAMPTZ (last_autovacuum_time );
132
+ PG_STAT_GET_RELENTRY_TIMESTAMPTZ (last_autovacuum_time )
133
133
134
134
/* pg_stat_get_last_vacuum_time */
135
- PG_STAT_GET_RELENTRY_TIMESTAMPTZ (last_vacuum_time );
135
+ PG_STAT_GET_RELENTRY_TIMESTAMPTZ (last_vacuum_time )
136
136
137
137
/* pg_stat_get_lastscan */
138
- PG_STAT_GET_RELENTRY_TIMESTAMPTZ (lastscan );
138
+ PG_STAT_GET_RELENTRY_TIMESTAMPTZ (lastscan )
139
139
140
140
Datum
141
141
pg_stat_get_function_calls (PG_FUNCTION_ARGS )
@@ -952,70 +952,70 @@ CppConcat(pg_stat_get_db_,stat)(PG_FUNCTION_ARGS) \
952
952
result = (int64) (dbentry->stat); \
953
953
\
954
954
PG_RETURN_INT64(result); \
955
- } \
955
+ }
956
956
957
957
/* pg_stat_get_db_blocks_fetched */
958
- PG_STAT_GET_DBENTRY_INT64 (blocks_fetched );
958
+ PG_STAT_GET_DBENTRY_INT64 (blocks_fetched )
959
959
960
960
/* pg_stat_get_db_blocks_hit */
961
- PG_STAT_GET_DBENTRY_INT64 (blocks_hit );
961
+ PG_STAT_GET_DBENTRY_INT64 (blocks_hit )
962
962
963
963
/* pg_stat_get_db_conflict_bufferpin */
964
- PG_STAT_GET_DBENTRY_INT64 (conflict_bufferpin );
964
+ PG_STAT_GET_DBENTRY_INT64 (conflict_bufferpin )
965
965
966
966
/* pg_stat_get_db_conflict_lock */
967
- PG_STAT_GET_DBENTRY_INT64 (conflict_lock );
967
+ PG_STAT_GET_DBENTRY_INT64 (conflict_lock )
968
968
969
969
/* pg_stat_get_db_conflict_snapshot */
970
- PG_STAT_GET_DBENTRY_INT64 (conflict_snapshot );
970
+ PG_STAT_GET_DBENTRY_INT64 (conflict_snapshot )
971
971
972
972
/* pg_stat_get_db_conflict_startup_deadlock */
973
- PG_STAT_GET_DBENTRY_INT64 (conflict_startup_deadlock );
973
+ PG_STAT_GET_DBENTRY_INT64 (conflict_startup_deadlock )
974
974
975
975
/* pg_stat_get_db_conflict_tablespace */
976
- PG_STAT_GET_DBENTRY_INT64 (conflict_tablespace );
976
+ PG_STAT_GET_DBENTRY_INT64 (conflict_tablespace )
977
977
978
978
/* pg_stat_get_db_deadlocks */
979
- PG_STAT_GET_DBENTRY_INT64 (deadlocks );
979
+ PG_STAT_GET_DBENTRY_INT64 (deadlocks )
980
980
981
981
/* pg_stat_get_db_sessions */
982
- PG_STAT_GET_DBENTRY_INT64 (sessions );
982
+ PG_STAT_GET_DBENTRY_INT64 (sessions )
983
983
984
984
/* pg_stat_get_db_sessions_abandoned */
985
- PG_STAT_GET_DBENTRY_INT64 (sessions_abandoned );
985
+ PG_STAT_GET_DBENTRY_INT64 (sessions_abandoned )
986
986
987
987
/* pg_stat_get_db_sessions_fatal */
988
- PG_STAT_GET_DBENTRY_INT64 (sessions_fatal );
988
+ PG_STAT_GET_DBENTRY_INT64 (sessions_fatal )
989
989
990
990
/* pg_stat_get_db_sessions_killed */
991
- PG_STAT_GET_DBENTRY_INT64 (sessions_killed );
991
+ PG_STAT_GET_DBENTRY_INT64 (sessions_killed )
992
992
993
993
/* pg_stat_get_db_temp_bytes */
994
- PG_STAT_GET_DBENTRY_INT64 (temp_bytes );
994
+ PG_STAT_GET_DBENTRY_INT64 (temp_bytes )
995
995
996
996
/* pg_stat_get_db_temp_files */
997
- PG_STAT_GET_DBENTRY_INT64 (temp_files );
997
+ PG_STAT_GET_DBENTRY_INT64 (temp_files )
998
998
999
999
/* pg_stat_get_db_tuples_deleted */
1000
- PG_STAT_GET_DBENTRY_INT64 (tuples_deleted );
1000
+ PG_STAT_GET_DBENTRY_INT64 (tuples_deleted )
1001
1001
1002
1002
/* pg_stat_get_db_tuples_fetched */
1003
- PG_STAT_GET_DBENTRY_INT64 (tuples_fetched );
1003
+ PG_STAT_GET_DBENTRY_INT64 (tuples_fetched )
1004
1004
1005
1005
/* pg_stat_get_db_tuples_inserted */
1006
- PG_STAT_GET_DBENTRY_INT64 (tuples_inserted );
1006
+ PG_STAT_GET_DBENTRY_INT64 (tuples_inserted )
1007
1007
1008
1008
/* pg_stat_get_db_tuples_returned */
1009
- PG_STAT_GET_DBENTRY_INT64 (tuples_returned );
1009
+ PG_STAT_GET_DBENTRY_INT64 (tuples_returned )
1010
1010
1011
1011
/* pg_stat_get_db_tuples_updated */
1012
- PG_STAT_GET_DBENTRY_INT64 (tuples_updated );
1012
+ PG_STAT_GET_DBENTRY_INT64 (tuples_updated )
1013
1013
1014
1014
/* pg_stat_get_db_xact_commit */
1015
- PG_STAT_GET_DBENTRY_INT64 (xact_commit );
1015
+ PG_STAT_GET_DBENTRY_INT64 (xact_commit )
1016
1016
1017
1017
/* pg_stat_get_db_xact_rollback */
1018
- PG_STAT_GET_DBENTRY_INT64 (xact_rollback );
1018
+ PG_STAT_GET_DBENTRY_INT64 (xact_rollback )
1019
1019
1020
1020
1021
1021
Datum
@@ -1109,22 +1109,22 @@ CppConcat(pg_stat_get_db_,stat)(PG_FUNCTION_ARGS) \
1109
1109
result = ((double) dbentry->stat) / 1000.0; \
1110
1110
\
1111
1111
PG_RETURN_FLOAT8(result); \
1112
- } \
1112
+ }
1113
1113
1114
1114
/* pg_stat_get_db_active_time */
1115
- PG_STAT_GET_DBENTRY_FLOAT8 (active_time );
1115
+ PG_STAT_GET_DBENTRY_FLOAT8 (active_time )
1116
1116
1117
1117
/* pg_stat_get_db_blk_read_time */
1118
- PG_STAT_GET_DBENTRY_FLOAT8 (blk_read_time );
1118
+ PG_STAT_GET_DBENTRY_FLOAT8 (blk_read_time )
1119
1119
1120
1120
/* pg_stat_get_db_blk_write_time */
1121
- PG_STAT_GET_DBENTRY_FLOAT8 (blk_write_time );
1121
+ PG_STAT_GET_DBENTRY_FLOAT8 (blk_write_time )
1122
1122
1123
1123
/* pg_stat_get_db_idle_in_transaction_time */
1124
- PG_STAT_GET_DBENTRY_FLOAT8 (idle_in_transaction_time );
1124
+ PG_STAT_GET_DBENTRY_FLOAT8 (idle_in_transaction_time )
1125
1125
1126
1126
/* pg_stat_get_db_session_time */
1127
- PG_STAT_GET_DBENTRY_FLOAT8 (session_time );
1127
+ PG_STAT_GET_DBENTRY_FLOAT8 (session_time )
1128
1128
1129
1129
Datum
1130
1130
pg_stat_get_bgwriter_timed_checkpoints (PG_FUNCTION_ARGS )
0 commit comments