1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-30 21:42:05 +03:00

Adjust ExplainOneQuery_hook_type to take a DestReceiver argument.

The materialized views patch adjusted ExplainOneQuery to take an
additional DestReceiver argument, but failed to add a matching
argument to the definition of ExplainOneQuery_hook.  This is a
problem for users of the hook that want to call ExplainOnePlan.
Fix by adding the missing argument.
This commit is contained in:
Robert Haas
2013-04-09 10:13:38 -04:00
parent 3ccae48f44
commit 0bf42a5f3b
2 changed files with 2 additions and 1 deletions

View File

@ -312,7 +312,7 @@ ExplainOneQuery(Query *query, IntoClause *into, ExplainState *es,
/* if an advisor plugin is present, let it manage things */
if (ExplainOneQuery_hook)
(*ExplainOneQuery_hook) (query, into, es, queryString, params);
(*ExplainOneQuery_hook) (query, into, es, queryString, dest, params);
else
{
PlannedStmt *plan;