diff --git a/pg_stat_monitor.c b/pg_stat_monitor.c index 2338c06..467b2ff 100644 --- a/pg_stat_monitor.c +++ b/pg_stat_monitor.c @@ -2553,7 +2553,7 @@ pg_stat_monitor_internal(FunctionCallInfo fcinfo, values[i++] = Float8GetDatumFast(tmp.blocks.temp_blk_write_time); /* resp_calls at column number 49 */ - values[i++] = IntArrayGetTextDatum(tmp.resp_calls, hist_bucket_count_total); + values[i++] = intarray_get_datum(tmp.resp_calls, hist_bucket_count_total); /* cpu_user_time at column number 50 */ values[i++] = Float8GetDatumFast(tmp.sysinfo.utime); diff --git a/pg_stat_monitor.h b/pg_stat_monitor.h index 8cf5959..875e05b 100644 --- a/pg_stat_monitor.h +++ b/pg_stat_monitor.h @@ -62,7 +62,6 @@ #define MAX_BACKEND_PROCESES (MaxBackends + NUM_AUXILIARY_PROCS + max_prepared_xacts) -#define IntArrayGetTextDatum(x,y) intarray_get_datum(x,y) /* XXX: Should USAGE_EXEC reflect execution time and/or buffer usage? */ #define USAGE_EXEC(duration) (1.0)