Fix missing space in EXPLAIN ANALYZE output.
authorRobert Haas <rhaas@postgresql.org>
Fri, 28 Feb 2025 18:02:03 +0000 (13:02 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 28 Feb 2025 18:04:12 +0000 (13:04 -0500)
Commit ddb17e387aa28d61521227377b00f997756b8a27 introduced this
regression. Ideally, the regression tests would have caught this
mistake, but apparently they don't test with timing enabled,
presumably because that would make the output vary.

Author: Thom Brown <thom@linux.com>
Reviewed-by: Fabrízio de Royes Mello <fabriziomello@gmail.com>
Discussion: http://postgr.es/m/CAA-aLv6nq=UeiyvM7_Mxgo9TVBzs2oh46b9vfyLzuyVEz3j1-g@mail.gmail.com

src/backend/commands/explain.c

index 7e4432f080a51f5281edd65b1e8c18e415c05225..d8a7232cedbf2eb0786332548e0e3cc81daed059 100644 (file)
@@ -2038,7 +2038,7 @@ ExplainNode(PlanState *planstate, List *ancestors,
                ExplainIndentText(es);
                appendStringInfo(es->str, "actual ");
                if (es->timing)
-                   appendStringInfo(es->str, "time=%.3f..%.3f", startup_ms, total_ms);
+                   appendStringInfo(es->str, "time=%.3f..%.3f ", startup_ms, total_ms);
 
                appendStringInfo(es->str, "rows=%.2f loops=%.0f\n", rows, nloops);
            }