PG-182: Added a new option for the query buffer overflow.

This commit is contained in:
Ibrar Ahmed
2021-02-17 13:08:39 +00:00
parent 0c9c25fbd9
commit 6aa1b2e7b6
6 changed files with 61 additions and 43 deletions

14
guc.c
View File

@@ -18,7 +18,7 @@
#include "pg_stat_monitor.h"
GucVariable conf[13];
GucVariable conf[MAX_SETTINGS];
static void DefineIntGUC(GucVariable *conf);
static void DefineBoolGUC(GucVariable *conf);
@@ -161,6 +161,18 @@ init_guc(void)
};
DefineIntGUC(&conf[i++]);
conf[i] = (GucVariable) {
.guc_name = "pg_stat_monitor.pgsm_overflow_target",
.guc_desc = "Sets the overflow target for pg_stat_monitor",
.guc_default = 1,
.guc_min = 0,
.guc_max = 1,
.guc_restart = true,
.guc_unit = 0,
.guc_value = &PGSM_OVERFLOW_TARGET
};
DefineIntGUC(&conf[i++]);
#if PG_VERSION_NUM >= 130000
conf[i] = (GucVariable) {
.guc_name = "pg_stat_monitor.pgsm_track_planning",