Issue(30): Code refactoring.

This commit is contained in:
Ibrar Ahmed
2020-09-14 22:26:19 +00:00
parent 7613b1cb1c
commit 935d063f13
6 changed files with 554 additions and 713 deletions

12
guc.c
View File

@@ -81,9 +81,9 @@ init_guc(void)
conf[i++] = (GucVariable) {
.guc_name = "pg_stat_monitor.pgsm_object_cache",
.guc_desc = "Sets the maximum number of object cache",
.guc_default = 5,
.guc_min = 5,
.guc_max = 10,
.guc_default = 50,
.guc_min = 50,
.guc_max = INT_MAX,
.guc_restart = true
};
@@ -214,9 +214,9 @@ init_guc(void)
"Sets the maximum number of object cache",
NULL,
&PGSM_OBJECT_CACHE,
5,
5,
10,
50,
50,
INT_MAX,
PGC_POSTMASTER,
0,
NULL,