Export ExplainBeginOutput() and ExplainEndOutput() for auto_explain.

Robert Haas <rhaas@postgresql.org>

Commit: 02490d4692c46bee3e9279e79c5d07c576d2a32c
Author: Robert Haas <rhaas@postgresql.org>
Date: 2009-12-12T00:35:34Z
Releases: 9.0.0
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.

Files