]> granicus.if.org Git - postgresql/commit
Export ExplainBeginOutput() and ExplainEndOutput() for auto_explain.
authorRobert Haas <rhaas@postgresql.org>
Sat, 12 Dec 2009 00:35:34 +0000 (00:35 +0000)
committerRobert Haas <rhaas@postgresql.org>
Sat, 12 Dec 2009 00:35:34 +0000 (00:35 +0000)
commit02490d4692c46bee3e9279e79c5d07c576d2a32c
tree110854a6ec9e7e61d4c0e846650f0a78694f34a9
parent6b45e3b7aaa0a66082f61921e01f6df6e9f9253f
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.
contrib/auto_explain/auto_explain.c
src/backend/commands/explain.c
src/include/commands/explain.h