From: Tomas Vondra Date: Sat, 3 Jun 2017 22:47:07 +0000 (+0200) Subject: Hide list of nodes in EXPLAIN (NODES off, FORMAT json) X-Git-Tag: XL_10_R1BETA1~289 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=dfbb88e3bbb526dcb204b456b9e5cfd9d10d0d0a;p=postgres-xl.git 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. --- 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;