mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
Use appendStringInfoString instead of appendStringInfo where possible.
This shaves a few cycles, and generally seems like good programming practice. David Rowley
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -1523,7 +1523,7 @@ serialize_deflist(List *deflist)
|
||||
}
|
||||
appendStringInfoChar(&buf, '\'');
|
||||
if (lnext(l) != NULL)
|
||||
appendStringInfo(&buf, ", ");
|
||||
appendStringInfoString(&buf, ", ");
|
||||
}
|
||||
|
||||
result = cstring_to_text_with_len(buf.data, buf.len);
|
||||
|
||||
Reference in New Issue
Block a user