PG-382: Adjust the maximum value for histogram buckets.

There was no maximum limit set for the number of maximum histograms
bucket, which can lead to a crash in case of higher value.

PG-382: Adjust the maximum value for histogram buckets.

Fix the regression issue related to GUC and set the maximum
buckets value correctly.

PG-382: Adjust the maximum value for histogram buckets.

Fix the TAP test cases.
This commit is contained in:
Ibrar Ahmed
2022-05-06 19:59:06 +00:00
committed by Ibrar Ahmed
parent b3a2b8daf0
commit 13eedd579e
21 changed files with 88 additions and 80 deletions

2
guc.c
View File

@@ -137,7 +137,7 @@ init_guc(void)
.guc_desc = "Sets the maximum number of histogram buckets",
.guc_default = 10,
.guc_min = 2,
.guc_max = INT_MAX,
.guc_max = MAX_RESPONSE_BUCKET,
.guc_restart = true,
.guc_unit = 0,
.guc_value = &PGSM_HISTOGRAM_BUCKETS