6
6
* Copyright (c) 2008-2010, PostgreSQL Global Development Group
7
7
*
8
8
* IDENTIFICATION
9
- * $PostgreSQL: pgsql/contrib/auto_explain/auto_explain.c,v 1.13 2010/02/16 22:19:59 adunstan Exp $
9
+ * $PostgreSQL: pgsql/contrib/auto_explain/auto_explain.c,v 1.14 2010/02/26 02:00:31 momjian Exp $
10
10
*
11
11
*-------------------------------------------------------------------------
12
12
*/
@@ -27,11 +27,11 @@ static int auto_explain_log_format = EXPLAIN_FORMAT_TEXT;
27
27
static bool auto_explain_log_nested_statements = false;
28
28
29
29
static const struct config_enum_entry format_options [] = {
30
- {"text" , EXPLAIN_FORMAT_TEXT , false},
31
- {"xml" , EXPLAIN_FORMAT_XML , false},
32
- {"json" , EXPLAIN_FORMAT_JSON , false},
33
- {"yaml" , EXPLAIN_FORMAT_YAML , false},
34
- {NULL , 0 , false}
30
+ {"text" , EXPLAIN_FORMAT_TEXT , false},
31
+ {"xml" , EXPLAIN_FORMAT_XML , false},
32
+ {"json" , EXPLAIN_FORMAT_JSON , false},
33
+ {"yaml" , EXPLAIN_FORMAT_YAML , false},
34
+ {NULL , 0 , false}
35
35
};
36
36
37
37
/* Current nesting depth of ExecutorRun calls */
@@ -231,7 +231,7 @@ explain_ExecutorEnd(QueryDesc *queryDesc)
231
231
msec = queryDesc -> totaltime -> total * 1000.0 ;
232
232
if (msec >= auto_explain_log_min_duration )
233
233
{
234
- ExplainState es ;
234
+ ExplainState es ;
235
235
236
236
ExplainInitState (& es );
237
237
es .analyze = (queryDesc -> instrument_options && auto_explain_log_analyze );
@@ -257,7 +257,7 @@ explain_ExecutorEnd(QueryDesc *queryDesc)
257
257
ereport (LOG ,
258
258
(errmsg ("duration: %.3f ms plan:\n%s" ,
259
259
msec , es .str -> data ),
260
- errhidestmt (true)));
260
+ errhidestmt (true)));
261
261
262
262
pfree (es .str -> data );
263
263
}
0 commit comments