From fa55eb333d160bb597c2baa0f7afebfe237e375f Mon Sep 17 00:00:00 2001 From: Diego Fronza Date: Mon, 16 Aug 2021 17:28:36 -0400 Subject: [PATCH] PG-220: Fix pgsm_overflow_target defaults. The GUC variable pgsm_overflow_target was pointing to the wrong index (12, pgsm_track_planning) in the "GucVariable conf[MAX_SETTINGS]" array. Adjusted it to the right index, 11. --- pg_stat_monitor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pg_stat_monitor.h b/pg_stat_monitor.h index 2ddfe01..a1ab4d5 100644 --- a/pg_stat_monitor.h +++ b/pg_stat_monitor.h @@ -411,7 +411,7 @@ void pgss_startup(void); #define PGSM_HISTOGRAM_MAX get_conf(8)->guc_variable #define PGSM_HISTOGRAM_BUCKETS get_conf(9)->guc_variable #define PGSM_QUERY_SHARED_BUFFER get_conf(10)->guc_variable -#define PGSM_OVERFLOW_TARGET get_conf(12)->guc_variable +#define PGSM_OVERFLOW_TARGET get_conf(11)->guc_variable #define PGSM_QUERY_PLAN get_conf(12)->guc_variable #define PGSM_TRACK_PLANNING get_conf(13)->guc_variable