From 3487e70cc6c58dfbe70a77f6451274cc25fba810 Mon Sep 17 00:00:00 2001 From: Hamid Akhtar Date: Tue, 24 Jan 2023 20:19:48 +0500 Subject: [PATCH] PG-599: PGSM build failure on PG-11 Resolving the compilation issue caused by ereport statement. --- pg_stat_monitor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pg_stat_monitor.c b/pg_stat_monitor.c index 3ea5e60..6156450 100644 --- a/pg_stat_monitor.c +++ b/pg_stat_monitor.c @@ -299,9 +299,9 @@ _PG_init(void) if (b_count != hist_bucket_count_user) ereport(WARNING, - errcode(ERRCODE_INVALID_PARAMETER_VALUE), - errmsg("pg_stat_monitor: Histogram buckets are overlapping."), - errdetail("Histogram bucket size is set to %d [not including outlier buckets].", hist_bucket_count_user)); + (errcode(ERRCODE_INVALID_PARAMETER_VALUE), + errmsg("pg_stat_monitor: Histogram buckets are overlapping."), + errdetail("Histogram bucket size is set to %d [not including outlier buckets].", hist_bucket_count_user))); } }