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:
c2b1e01
)
Hide list of nodes in EXPLAIN (NODES off, FORMAT json)
author
Tomas Vondra
<
[email protected]
>
Sat, 3 Jun 2017 22:47:07 +0000
(
00:47
+0200)
committer
Tomas Vondra
<
[email protected]
>
Sat, 3 Jun 2017 22:50:24 +0000
(
00:50
+0200)
EXPLAIN with json format was ignoring the NODES option, showing the list
of nodes every time. This commit fixes that.
src/backend/commands/explain.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/commands/explain.c
b/src/backend/commands/explain.c
index 18b2404ebfdc96b64b721f9c25fcf3c7042290d5..cdc0fe8f0c73323f1f9c305920dbc37fcfe4f1f2 100644
(file)
--- a/
src/backend/commands/explain.c
+++ b/
src/backend/commands/explain.c
@@
-1196,7
+1196,8
@@
ExplainNode(PlanState *planstate, List *ancestors,
ExplainPropertyText("Replicated",
rsubplan->execOnAll ? "no" : "yes",
es);
- ExplainPropertyList("Node List", nodeNameList, es);
+ if (es->nodes)
+ ExplainPropertyList("Node List", nodeNameList, es);
}
}
break;