aboutsummaryrefslogtreecommitdiff
path: root/src/include/commands/explain.h
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2009-12-12 00:35:34 +0000
committerRobert Haas <rhaas@postgresql.org>2009-12-12 00:35:34 +0000
commit02490d4692c46bee3e9279e79c5d07c576d2a32c (patch)
tree110854a6ec9e7e61d4c0e846650f0a78694f34a9 /src/include/commands/explain.h
parent6b45e3b7aaa0a66082f61921e01f6df6e9f9253f (diff)
downloadpostgresql-02490d4692c46bee3e9279e79c5d07c576d2a32c.tar.gz
postgresql-02490d4692c46bee3e9279e79c5d07c576d2a32c.zip
Export ExplainBeginOutput() and ExplainEndOutput() for auto_explain.
Without these functions, anyone outside of explain.c can't actually use ExplainPrintPlan, because the ExplainState won't be initialized properly. The user-visible result of this was a crash when using auto_explain with the JSON output format. Report by Euler Taveira de Oliveira. Analysis by Tom Lane. Patch by me.
Diffstat (limited to 'src/include/commands/explain.h')
-rw-r--r--src/include/commands/explain.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/commands/explain.h b/src/include/commands/explain.h
index 7137a7ab41e..75b5ed3d3c7 100644
--- a/src/include/commands/explain.h
+++ b/src/include/commands/explain.h
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
* Portions Copyright (c) 1994-5, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/commands/explain.h,v 1.42 2009/12/11 01:33:35 adunstan Exp $
+ * $PostgreSQL: pgsql/src/include/commands/explain.h,v 1.43 2009/12/12 00:35:34 rhaas Exp $
*
*-------------------------------------------------------------------------
*/
@@ -65,6 +65,8 @@ extern void ExplainOnePlan(PlannedStmt *plannedstmt, ExplainState *es,
extern void ExplainPrintPlan(ExplainState *es, QueryDesc *queryDesc);
+extern void ExplainBeginOutput(ExplainState *es);
+extern void ExplainEndOutput(ExplainState *es);
extern void ExplainSeparatePlans(ExplainState *es);
#endif /* EXPLAIN_H */