Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0bf42a5

Browse files
committed
Adjust ExplainOneQuery_hook_type to take a DestReceiver argument.
The materialized views patch adjusted ExplainOneQuery to take anadditional DestReceiver argument, but failed to add a matchingargument to the definition of ExplainOneQuery_hook. This is aproblem for users of the hook that want to call ExplainOnePlan.Fix by adding the missing argument.
1 parent3ccae48 commit0bf42a5

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
constchar*queryString,
50+
DestReceiver*dest,
5051
ParamListInfoparams);
5152
externPGDLLIMPORTExplainOneQuery_hook_typeExplainOneQuery_hook;
5253

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp