66 * Copyright (c) 2008-2010, PostgreSQL Global Development Group
77 *
88 * 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 $
1010 *
1111 *-------------------------------------------------------------------------
1212 */
@@ -27,11 +27,11 @@ static intauto_explain_log_format = EXPLAIN_FORMAT_TEXT;
2727static bool auto_explain_log_nested_statements = false;
2828
2929static 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}
3535};
3636
3737/* Current nesting depth of ExecutorRun calls */
@@ -231,7 +231,7 @@ explain_ExecutorEnd(QueryDesc *queryDesc)
231231msec = queryDesc -> totaltime -> total * 1000.0 ;
232232if (msec >=auto_explain_log_min_duration )
233233{
234- ExplainState es ;
234+ ExplainState es ;
235235
236236ExplainInitState (& es );
237237es .analyze = (queryDesc -> instrument_options && auto_explain_log_analyze );
@@ -257,7 +257,7 @@ explain_ExecutorEnd(QueryDesc *queryDesc)
257257ereport (LOG ,
258258(errmsg ("duration: %.3f ms plan:\n%s" ,
259259msec ,es .str -> data ),
260- errhidestmt (true)));
260+ errhidestmt (true)));
261261
262262pfree (es .str -> data );
263263}