diff options
author | Robert Haas <rhaas@postgresql.org> | 2016-06-09 18:02:36 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2016-06-09 18:02:36 -0400 |
commit | 4bc424b968058c7f0aa685821d7039e86faac99c (patch) | |
tree | a4e245ae67bd11edb3926ff5fb3b0223438ac283 /contrib/auto_explain/auto_explain.c | |
parent | 9164deea2f4ac90ee5e008ff41fc5ad4423887b2 (diff) | |
download | postgresql-4bc424b968058c7f0aa685821d7039e86faac99c.tar.gz postgresql-4bc424b968058c7f0aa685821d7039e86faac99c.zip |
pgindent run for 9.6
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) { |