mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 05:56:21 +00:00
Issue - (#35): Fix a compilation error on Centos.
This commit is contained in:
@@ -1222,7 +1222,8 @@ pg_stat_monitor_internal(FunctionCallInfo fcinfo,
|
|||||||
{
|
{
|
||||||
Datum values[PG_STAT_STATEMENTS_COLS];
|
Datum values[PG_STAT_STATEMENTS_COLS];
|
||||||
bool nulls[PG_STAT_STATEMENTS_COLS];
|
bool nulls[PG_STAT_STATEMENTS_COLS];
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
int kind;
|
||||||
Counters tmp;
|
Counters tmp;
|
||||||
double stddev;
|
double stddev;
|
||||||
int64 queryid = entry->key.queryid;
|
int64 queryid = entry->key.queryid;
|
||||||
@@ -1276,7 +1277,7 @@ pg_stat_monitor_internal(FunctionCallInfo fcinfo,
|
|||||||
|
|
||||||
values[i++] = TimestampGetDatum(pgssBucketEntries[entry->key.bucket_id]->counters.current_time);
|
values[i++] = TimestampGetDatum(pgssBucketEntries[entry->key.bucket_id]->counters.current_time);
|
||||||
|
|
||||||
for (int kind = 0; kind < PGSS_NUMKIND; kind++)
|
for (kind = 0; kind < PGSS_NUMKIND; kind++)
|
||||||
{
|
{
|
||||||
values[i++] = Int64GetDatumFast(tmp.calls[kind].calls);
|
values[i++] = Int64GetDatumFast(tmp.calls[kind].calls);
|
||||||
values[i++] = Float8GetDatumFast(tmp.time[kind].total_time);
|
values[i++] = Float8GetDatumFast(tmp.time[kind].total_time);
|
||||||
|
|||||||
Reference in New Issue
Block a user