appendPQExpBuffer(pg_ctl_cmd, " -s -o \"-c sync_replication_slots=off\"");
/* Prevent unintended slot invalidation */
- appendPQExpBuffer(pg_ctl_cmd, " -o \"-c idle_replication_slot_timeout=0\"");
+ appendPQExpBufferStr(pg_ctl_cmd, " -o \"-c idle_replication_slot_timeout=0\"");
if (restricted_access)
{
/* Suppress to start logical replication if requested */
if (restrict_logical_worker)
- appendPQExpBuffer(pg_ctl_cmd, " -o \"-c max_logical_replication_workers=0\"");
+ appendPQExpBufferStr(pg_ctl_cmd, " -o \"-c max_logical_replication_workers=0\"");
pg_log_debug("pg_ctl command is: %s", pg_ctl_cmd->data);
rc = system(pg_ctl_cmd->data);
{
*invalidnotnulloids = createPQExpBuffer();
appendPQExpBufferChar(*invalidnotnulloids, '{');
- appendPQExpBuffer(*invalidnotnulloids, "%s", constroid);
+ appendPQExpBufferStr(*invalidnotnulloids, constroid);
}
else
appendPQExpBuffer(*invalidnotnulloids, ",%s", constroid);
*/
if (rsinfo->nindAttNames == 0)
{
- appendPQExpBuffer(out, ",\n\t'attname', ");
+ appendPQExpBufferStr(out, ",\n\t'attname', ");
appendStringLiteralAH(out, attname, fout);
}
else
escaped = PQescapeLiteral(conn, unescaped, unescaped_len);
if (!escaped)
{
- appendPQExpBuffer(escape_err, "%s",
- PQerrorMessage(conn));
+ appendPQExpBufferStr(escape_err, PQerrorMessage(conn));
escape_err->data[escape_err->len - 1] = 0;
escape_err->len--;
return false;
escaped = PQescapeIdentifier(conn, unescaped, unescaped_len);
if (!escaped)
{
- appendPQExpBuffer(escape_err, "%s",
- PQerrorMessage(conn));
+ appendPQExpBufferStr(escape_err, PQerrorMessage(conn));
escape_err->data[escape_err->len - 1] = 0;
escape_err->len--;
return false;
if (error)
{
- appendPQExpBuffer(escape_err, "%s",
- PQerrorMessage(conn));
+ appendPQExpBufferStr(escape_err, PQerrorMessage(conn));
escape_err->data[escape_err->len - 1] = 0;
escape_err->len--;
return false;
"#\t\t %d: scan_result: %s prompt: %u, query_buf: ",
matches, scan_res_s(scan_result), prompt_status);
escapify(details, query_buf->data, query_buf->len);
- appendPQExpBuffer(details, "\n");
+ appendPQExpBufferChar(details, '\n');
matches++;
}
}
/* name to describe the test */
- appendPQExpBuffer(testname, ">");
+ appendPQExpBufferChar(testname, '>');
escapify(testname, tv->escape, tv->escape_len);
appendPQExpBuffer(testname, "< - %s - %s",
tv->client_encoding, ef->name);
appendPQExpBuffer(details, "#\t input: %zd bytes: ",
tv->escape_len);
escapify(details, tv->escape, tv->escape_len);
- appendPQExpBufferStr(details, "\n");
+ appendPQExpBufferChar(details, '\n');
appendPQExpBuffer(details, "#\t encoding: %s\n",
tv->client_encoding);