*** pgsql/contrib/auto_explain/auto_explain.c 2009/12/11 01:33:35 1.8 --- pgsql/contrib/auto_explain/auto_explain.c 2009/12/12 00:35:33 1.9 *************** *** 6,12 **** * Copyright (c) 2008-2009, PostgreSQL Global Development Group * * IDENTIFICATION ! * $PostgreSQL: pgsql/contrib/auto_explain/auto_explain.c,v 1.7 2009/08/10 05:46:49 tgl Exp $ * *------------------------------------------------------------------------- */ --- 6,12 ---- * Copyright (c) 2008-2009, PostgreSQL Global Development Group * * IDENTIFICATION ! * $PostgreSQL: pgsql/contrib/auto_explain/auto_explain.c,v 1.8 2009/12/11 01:33:35 adunstan Exp $ * *------------------------------------------------------------------------- */ *************** explain_ExecutorEnd(QueryDesc *queryDesc *** 223,229 **** --- 223,231 ---- es.verbose = auto_explain_log_verbose; es.format = auto_explain_log_format; + ExplainBeginOutput(&es); ExplainPrintPlan(&es, queryDesc); + ExplainEndOutput(&es); /* Remove last line break */ if (es.str->len > 0 && es.str->data[es.str->len - 1] == '\n')