aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/explain.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2013-10-31 10:55:59 -0400
committerRobert Haas <rhaas@postgresql.org>2013-10-31 10:55:59 -0400
commitcacbdd78106526d7c4f11f90b538f96ba8696fb0 (patch)
tree68b44c07247b99a1b316c01f66ecf0f8d6e96127 /src/backend/commands/explain.c
parent343bb134ea20d3b7286c620c15a067da79cab724 (diff)
downloadpostgresql-cacbdd78106526d7c4f11f90b538f96ba8696fb0.tar.gz
postgresql-cacbdd78106526d7c4f11f90b538f96ba8696fb0.zip
Use appendStringInfoString instead of appendStringInfo where possible.
This shaves a few cycles, and generally seems like good programming practice. David Rowley
Diffstat (limited to 'src/backend/commands/explain.c')
-rw-r--r--src/backend/commands/explain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c
index 91bea517ec8..4e93df26cc8 100644
--- a/src/backend/commands/explain.c
+++ b/src/backend/commands/explain.c
@@ -1087,7 +1087,7 @@ ExplainNode(PlanState *planstate, List *ancestors,
if (((Join *) plan)->jointype != JOIN_INNER)
appendStringInfo(es->str, " %s Join", jointype);
else if (!IsA(plan, NestLoop))
- appendStringInfo(es->str, " Join");
+ appendStringInfoString(es->str, " Join");
}
else
ExplainPropertyText("Join Type", jointype, es);
@@ -1182,7 +1182,7 @@ ExplainNode(PlanState *planstate, List *ancestors,
{
if (es->format == EXPLAIN_FORMAT_TEXT)
- appendStringInfo(es->str, " (never executed)");
+ appendStringInfoString(es->str, " (never executed)");
else if (planstate->instrument->need_timer)
{
ExplainPropertyFloat("Actual Startup Time", 0.0, 3, es);