Skip to content

Commit

Permalink
Remove useless output from EXPLAIN
Browse files Browse the repository at this point in the history
Before the change, EXPLAIN would print "Cost: ?, Output: ? rows (?B)"
for every node. This information is available only in EXPLAIN ANALYZE.
  • Loading branch information
findepi committed Mar 6, 2019
1 parent 7d50038 commit ce9ecf9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -96,7 +96,7 @@ private String printStats(PlanRepresentation plan, NodeRepresentation node)
{
StringBuilder output = new StringBuilder();
if (!node.getStats().isPresent() || !(plan.getTotalCpuTime().isPresent() && plan.getTotalScheduledTime().isPresent())) {
return "Cost: ?, Output: ? rows (?B)\n";
return "";
}

PlanNodeStats nodeStats = node.getStats().get();
Expand Down

0 comments on commit ce9ecf9

Please sign in to comment.