projects
/
postgres-xl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69fba37
)
Use already created EState while explaining FQS-ed query.
author
Pavan Deolasee
<
[email protected]
>
Tue, 18 Apr 2017 12:05:53 +0000
(17:35 +0530)
committer
Pavan Deolasee
<
[email protected]
>
Fri, 5 May 2017 04:59:34 +0000
(10:29 +0530)
This ensures that we get details about supplied parameters correctly.
src/backend/commands/explain.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/commands/explain.c
b/src/backend/commands/explain.c
index 38dec4d5e45ba185fb3d22fa6c3cff1ebc291512..23496b4f8fc890aae3a4824074af29c20cc944e4 100644
(file)
--- a/
src/backend/commands/explain.c
+++ b/
src/backend/commands/explain.c
@@
-3614,13
+3614,9
@@
ExplainRemoteQuery(RemoteQuery *plan, PlanState *planstate, List *ancestors, Exp
plan->scan.plan.targetlist = lappend(plan->scan.plan.targetlist,
makeTargetEntry((Expr *) dummy, 1, "QUERY PLAN", false));
- /* Execute query on the data nodes */
- estate = CreateExecutorState();
-
+ estate = planstate->state;
oldcontext = MemoryContextSwitchTo(estate->es_query_cxt);
- estate->es_snapshot = GetActiveSnapshot();
-
node = ExecInitRemoteQuery(step, estate, 0);
MemoryContextSwitchTo(oldcontext);
result = ExecRemoteQuery(node);