a = FunctionCall1(&fmgrinfo, ranges_deserialized->values[idx++]);
- appendStringInfo(&str, "%s", DatumGetPointer(a));
+ appendStringInfoString(&str, DatumGetPointer(a));
b = cstring_to_text(str.data);
msgfmt = _(" %u pages from table (%.2f%% of total) had %lld dead item identifiers removed\n");
if (vacrel->nindexes == 0 || vacrel->num_index_scans == 0)
- appendStringInfo(&buf, _("index scan not needed:"));
+ appendStringInfoString(&buf, _("index scan not needed:"));
else
- appendStringInfo(&buf, _("index scan needed:"));
+ appendStringInfoString(&buf, _("index scan needed:"));
}
else
{
msgfmt = _(" %u pages from table (%.2f%% of total) have %lld dead item identifiers\n");
if (!vacrel->do_failsafe)
- appendStringInfo(&buf, _("index scan bypassed:"));
+ appendStringInfoString(&buf, _("index scan bypassed:"));
else
- appendStringInfo(&buf, _("index scan bypassed by failsafe:"));
+ appendStringInfoString(&buf, _("index scan bypassed by failsafe:"));
}
orig_rel_pages = vacrel->rel_pages + vacrel->pages_removed;
appendStringInfo(&buf, msgfmt,
if (opts.endblock >= 0)
appendPQExpBuffer(sql, ", endblock := " INT64_FORMAT, opts.endblock);
- appendPQExpBuffer(sql, ")");
+ appendPQExpBufferChar(sql, ')');
}
/*
if (has_some && !has_all)
{
- appendPQExpBuffer(&buf, " (");
+ appendPQExpBufferStr(&buf, " (");
/* options */
if (has_ndistinct)
appendPQExpBuffer(&buf, "%smcv", gotone ? ", " : "");
}
- appendPQExpBuffer(&buf, ")");
+ appendPQExpBufferChar(&buf, ')');
}
appendPQExpBuffer(&buf, " ON %s FROM %s",
child_relkind == RELKIND_PARTITIONED_INDEX)
appendPQExpBufferStr(&buf, ", PARTITIONED");
if (strcmp(PQgetvalue(result, i, 2), "t") == 0)
- appendPQExpBuffer(&buf, " (DETACH PENDING)");
+ appendPQExpBufferStr(&buf, " (DETACH PENDING)");
if (i < tuples - 1)
appendPQExpBufferChar(&buf, ',');