@@ -102,9 +102,6 @@ setup_gucs()
102102history_period_found = false,
103103profile_period_found = false;
104104
105- /* Initialize the guc_variables[] array */
106- build_guc_variables ();
107-
108105guc_vars = get_guc_variables ();
109106numOpts = GetNumConfigOptions ();
110107
@@ -113,20 +110,26 @@ setup_gucs()
113110mixedStruct * var = (mixedStruct * )guc_vars [i ];
114111const char * name = var -> generic .name ;
115112
113+ if (var -> generic .flags & GUC_CUSTOM_PLACEHOLDER )
114+ continue ;
115+
116116if (!strcmp (name ,"pg_wait_sampling.history_size" ))
117117{
118118history_size_found = true;
119119var -> integer .variable = & collector_hdr -> historySize ;
120+ collector_hdr -> historySize = 5000 ;
120121}
121122else if (!strcmp (name ,"pg_wait_sampling.history_period" ))
122123{
123124history_period_found = true;
124125var -> integer .variable = & collector_hdr -> historyPeriod ;
126+ collector_hdr -> historyPeriod = 10 ;
125127}
126128else if (!strcmp (name ,"pg_wait_sampling.profile_period" ))
127129{
128130profile_period_found = true;
129131var -> integer .variable = & collector_hdr -> profilePeriod ;
132+ collector_hdr -> profilePeriod = 10 ;
130133}
131134}
132135
@@ -147,6 +150,9 @@ setup_gucs()
147150"Sets period of waits profile sampling." ,NULL ,
148151& collector_hdr -> profilePeriod ,10 ,1 ,INT_MAX ,
149152PGC_SUSET ,0 ,shmem_int_guc_check_hook ,NULL ,NULL );
153+
154+ if (history_size_found || history_period_found || profile_period_found )
155+ ProcessConfigFile (PGC_SIGHUP );
150156}
151157
152158/*