diff options
Diffstat (limited to 'contrib/auto_explain/auto_explain.c')
-rw-r--r-- | contrib/auto_explain/auto_explain.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/contrib/auto_explain/auto_explain.c b/contrib/auto_explain/auto_explain.c index fcd11a00713..4ccd2aa8490 100644 --- a/contrib/auto_explain/auto_explain.c +++ b/contrib/auto_explain/auto_explain.c @@ -165,16 +165,16 @@ _PG_init(void) DefineCustomRealVariable("auto_explain.sample_rate", "Fraction of queries to process.", - NULL, - &auto_explain_sample_rate, - 1.0, - 0.0, - 1.0, - PGC_SUSET, - 0, - NULL, - NULL, - NULL); + NULL, + &auto_explain_sample_rate, + 1.0, + 0.0, + 1.0, + PGC_SUSET, + 0, + NULL, + NULL, + NULL); EmitWarningsOnPlaceholders("auto_explain"); @@ -209,12 +209,12 @@ static void explain_ExecutorStart(QueryDesc *queryDesc, int eflags) { /* - * For rate sampling, randomly choose top-level statement. Either - * all nested statements will be explained or none will. + * For rate sampling, randomly choose top-level statement. Either all + * nested statements will be explained or none will. */ if (auto_explain_log_min_duration >= 0 && nesting_level == 0) current_query_sampled = (random() < auto_explain_sample_rate * - MAX_RANDOM_VALUE); + MAX_RANDOM_VALUE); if (auto_explain_enabled() && current_query_sampled) { |