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 for PostgreSQL-12.

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

Fix the TAP test cases.
This commit is contained in:
Ibrar Ahmed
2022-05-24 05:13:06 +00:00
parent 1b995c768d
commit f60d3422df
22 changed files with 89 additions and 81 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