Issue (#42): Enable/Disable pg_stat_monitor should not require PostgreSQL restart.

PG-124
This commit is contained in:
Ibrar Ahmed
2020-08-17 15:01:32 +00:00
parent a2c87d8398
commit 6700c9686e
2 changed files with 32 additions and 29 deletions

8
guc.c
View File

@@ -106,8 +106,8 @@ init_guc(void)
};
conf[i++] = (GucVariable) {
.guc_name = "pg_stat_monitor.shared_buffer",
.guc_desc = "Sets the shared_buffer size.",
.guc_name = "pg_stat_monitor.pgsm_query_shared_buffer",
.guc_desc = "Sets the query shared_buffer size.",
.guc_default = 500000,
.guc_min = 500000,
.guc_max = INT_MAX,
@@ -155,7 +155,7 @@ init_guc(void)
NULL,
(bool*)&PGSM_ENABLED,
true,
PGC_SUSET,
PGC_USERSET,
0,
NULL,
NULL,
@@ -250,7 +250,7 @@ init_guc(void)
NULL);
DefineCustomIntVariable("pg_stat_monitor.pgsm_query_shared_buffer",
"Sets the shared_buffer size",
"Sets the query shared_buffer size",
NULL,
&PGSM_QUERY_BUF_SIZE,
500000,