aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2013-04-09 10:13:38 -0400
committerRobert Haas <rhaas@postgresql.org>2013-04-09 10:25:08 -0400
commit0bf42a5f3b62cde41cb366d3442585429c6d9c50 (patch)
treec000d7a4c2539e9f851373d1074b8e42151dd2f3
parent3ccae48f44d993351e1f881761bd6c556ebd6638 (diff)
downloadpostgresql-0bf42a5f3b62cde41cb366d3442585429c6d9c50.tar.gz
postgresql-0bf42a5f3b62cde41cb366d3442585429c6d9c50.zip
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.
-rw-r--r--src/backend/commands/explain.c2
-rw-r--r--src/include/commands/explain.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c
index 9799e9ecb41..67b97eef871 100644
--- a/src/backend/commands/explain.c
+++ b/src/backend/commands/explain.c
@@ -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;
diff --git a/src/include/commands/explain.h b/src/include/commands/explain.h
index 24ef493115e..4b740d5bfdb 100644
--- a/src/include/commands/explain.h
+++ b/src/include/commands/explain.h
@@ -47,6 +47,7 @@ typedef void (*ExplainOneQuery_hook_type) (Query *query,
IntoClause *into,
ExplainState *es,
const char *queryString,
+ DestReceiver *dest,
ParamListInfo params);
extern PGDLLIMPORT ExplainOneQuery_hook_type ExplainOneQuery_hook;