diff options
author | Tomas Vondra | 2017-06-03 22:47:07 +0000 |
---|---|---|
committer | Tomas Vondra | 2017-06-03 22:50:24 +0000 |
commit | dfbb88e3bbb526dcb204b456b9e5cfd9d10d0d0a (patch) | |
tree | 6124909e6c6e2f94b3094324aecfb9f2be104b1d /src | |
parent | c2b1e01aed3fe5c03e18641e42562744f2ae26d9 (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.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/commands/explain.c | 3 |
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; |