summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Vondra2017-06-03 22:47:07 +0000
committerTomas Vondra2017-06-03 22:50:24 +0000
commitdfbb88e3bbb526dcb204b456b9e5cfd9d10d0d0a (patch)
tree6124909e6c6e2f94b3094324aecfb9f2be104b1d
parentc2b1e01aed3fe5c03e18641e42562744f2ae26d9 (diff)
Hide list of nodes in EXPLAIN (NODES off, FORMAT json)
EXPLAIN with json format was ignoring the NODES option, showing the list of nodes every time. This commit fixes that.
-rw-r--r--src/backend/commands/explain.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c
index 18b2404ebf..cdc0fe8f0c 100644
--- 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;