diff --git a/pg_stat_monitor.c b/pg_stat_monitor.c index 2338c06..00c2c00 100644 --- a/pg_stat_monitor.c +++ b/pg_stat_monitor.c @@ -3774,7 +3774,7 @@ intarray_get_datum(int32 arr[], int len) { int j; char str[1024]; - char tmp[10]; + char tmp[13]; str[0] = '\0'; diff --git a/pg_stat_monitor.h b/pg_stat_monitor.h index 8cf5959..e869a82 100644 --- a/pg_stat_monitor.h +++ b/pg_stat_monitor.h @@ -326,8 +326,9 @@ typedef struct Counters JitInfo jitinfo; ErrorInfo error; Wal_Usage walusage; - int resp_calls[MAX_RESPONSE_BUCKET]; /* execution time's in - * msec */ + int resp_calls[MAX_RESPONSE_BUCKET + 2]; /* execution time's in + * msec; including 2 + * outlier buckets */ int64 parallel_workers_to_launch; /* # of parallel workers planned * to be launched */ int64 parallel_workers_launched; /* # of parallel workers actually