From 67d6e0ed751fce4a10fe830c476c0ea7472d0170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20=C3=85strand?= Date: Thu, 8 Jan 2026 15:45:51 +0100 Subject: [PATCH] Remove pointless macro This was just an unsafe alias for a function. --- pg_stat_monitor.c | 2 +- pg_stat_monitor.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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)