mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
pgindent run for 9.6
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user