buf->data[buf->len] = '\0';
        }
 
-       appendStringInfoString(buf, "]");
+       appendStringInfoChar(buf, ']');
 }
 
 static void
                buf->data[buf->len] = '\0';
        }
 
-       appendStringInfoString(buf, "]");
+       appendStringInfoChar(buf, ']');
 }
 
 static void
 
        *offsets += new_plan->ntuples;
 
-       appendStringInfo(buf, " }");
+       appendStringInfoString(buf, " }");
 }
 
 void
 
                        ((char *) updates + SizeOfBtreeUpdate +
                         updates->ndeletedtids * sizeof(uint16));
        }
-       appendStringInfoString(buf, "]");
+       appendStringInfoChar(buf, ']');
 }
 
                if (i < count - 1)
                        appendStringInfoString(buf, ", ");
        }
-       appendStringInfoString(buf, "]");
+       appendStringInfoChar(buf, ']');
 }
 
 void
 
 
        appendStringInfo(result, "CHECKPOINT LOCATION: %X/%X\n",
                                         LSN_FORMAT_ARGS(state->checkpointloc));
-       appendStringInfo(result, "BACKUP METHOD: streamed\n");
+       appendStringInfoString(result, "BACKUP METHOD: streamed\n");
        appendStringInfo(result, "BACKUP FROM: %s\n",
                                         state->started_in_recovery ? "standby" : "primary");
        appendStringInfo(result, "START TIME: %s\n", startstrbuf);
 
                        break;
 
                case RS_INVAL_WAL_LEVEL:
-                       appendStringInfo(&err_detail, _("Logical decoding on standby requires wal_level >= logical on the primary server."));
+                       appendStringInfoString(&err_detail, _("Logical decoding on standby requires wal_level >= logical on the primary server."));
                        break;
                case RS_INVAL_NONE:
                        pg_unreachable();
 
 
                case F_IS_NORMALIZED:
                        /* IS xxx NORMALIZED */
-                       appendStringInfoString(buf, "(");
+                       appendStringInfoChar(buf, '(');
                        get_rule_expr_paren((Node *) linitial(expr->args), context, false,
                                                                (Node *) expr);
                        appendStringInfoString(buf, " IS");
        }
 
        get_json_constructor_options(ctor, buf);
-       appendStringInfo(buf, ")");
+       appendStringInfoChar(buf, ')');
 }
 
 /*
 
                                                         bindir ? "/" : "",
                                                         temp_instance);
                        if (debug)
-                               appendStringInfo(&cmd, " --debug");
+                               appendStringInfoString(&cmd, " --debug");
                        if (nolocale)
-                               appendStringInfo(&cmd, " --no-locale");
+                               appendStringInfoString(&cmd, " --no-locale");
                        appendStringInfo(&cmd, " > \"%s/log/initdb.log\" 2>&1", outputdir);
                        fflush(NULL);
                        if (system(cmd.data))