ereport(NOTICE,
(errmsg("ignoring incomplete trigger group for constraint \"%s\" %s",
constr_name, buf.data),
- errdetail(funcdescr[funcnum])));
+ errdetail("%s", funcdescr[funcnum])));
oldContext = MemoryContextSwitchTo(TopMemoryContext);
info = (OldTriggerInfo *) palloc0(sizeof(OldTriggerInfo));
info->args = copyObject(stmt->args);
ereport(NOTICE,
(errmsg("ignoring incomplete trigger group for constraint \"%s\" %s",
constr_name, buf.data),
- errdetail(funcdescr[funcnum])));
+ errdetail("%s", funcdescr[funcnum])));
}
else
{
ereport(NOTICE,
(errmsg("converting trigger group into constraint \"%s\" %s",
constr_name, buf.data),
- errdetail(funcdescr[funcnum])));
+ errdetail("%s", funcdescr[funcnum])));
if (funcnum == 2)
{
/* This trigger is on the FK table */
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("invalid value for parameter \"%s\": \"%s\"",
name, value),
- hintmsg ? errhint(hintmsg) : 0));
+ hintmsg ? errhint("%s", hintmsg) : 0));
return false;
}
if (newval < conf->min || newval > conf->max)
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("invalid value for parameter \"%s\": \"%s\"",
name, value),
- hintmsg ? errhint(hintmsg) : 0));
+ hintmsg ? errhint("%s", hintmsg) : 0));
if (hintmsg)
pfree(hintmsg);
case 2:
appendPQExpBuffer(pgdumpopts, " --lock-wait-timeout=");
- appendPQExpBuffer(pgdumpopts, optarg);
+ appendPQExpBuffer(pgdumpopts, "%s", optarg);
break;
default:
appendPQExpBufferStr(msg, "(not available)");
appendPQExpBufferStr(msg, "\n");
- psql_error(msg->data);
+ psql_error("%s", msg->data);
destroyPQExpBuffer(msg);
}