Skip to content

Commit 0bf42a5

Browse files
committed
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.
1 parent 3ccae48 commit 0bf42a5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/backend/commands/explain.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ ExplainOneQuery(Query *query, IntoClause *into, ExplainState *es,
312312

313313
/* if an advisor plugin is present, let it manage things */
314314
if (ExplainOneQuery_hook)
315-
(*ExplainOneQuery_hook) (query, into, es, queryString, params);
315+
(*ExplainOneQuery_hook) (query, into, es, queryString, dest, params);
316316
else
317317
{
318318
PlannedStmt *plan;

src/include/commands/explain.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ typedef void (*ExplainOneQuery_hook_type) (Query *query,
4747
IntoClause *into,
4848
ExplainState *es,
4949
const char *queryString,
50+
DestReceiver *dest,
5051
ParamListInfo params);
5152
extern PGDLLIMPORT ExplainOneQuery_hook_type ExplainOneQuery_hook;
5253

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy