if (!collcollate)
ereport(ERROR,
(errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
- errmsg("parameter \"lc_collate\" must be specified")));
+ errmsg("parameter \"%s\" must be specified",
+ "lc_collate")));
if (!collctype)
ereport(ERROR,
(errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
- errmsg("parameter \"lc_ctype\" must be specified")));
+ errmsg("parameter \"%s\" must be specified",
+ "lc_ctype")));
}
else if (collprovider == COLLPROVIDER_ICU)
{
if (!colliculocale)
ereport(ERROR,
(errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
- errmsg("parameter \"locale\" must be specified")));
+ errmsg("parameter \"%s\" must be specified",
+ "locale")));
/*
* During binary upgrade, preserve the locale string. Otherwise,
if (collOid == DEFAULT_COLLATION_OID)
ereport(ERROR,
(errmsg("cannot refresh version of default collation"),
- errhint("Use ALTER DATABASE ... REFRESH COLLATION VERSION instead.")));
+ /* translator: %s is an SQL command */
+ errhint("Use %s instead.",
+ "ALTER DATABASE ... REFRESH COLLATION VERSION")));
if (!object_ownercheck(CollationRelationId, collOid, GetUserId()))
aclcheck_error(ACLCHECK_NOT_OWNER, OBJECT_COLLATION,
(errcode(ERRCODE_SYNTAX_ERROR),
errmsg("column \"%s\" of relation \"%s\" is an identity column",
colName, RelationGetRelationName(rel)),
- newDefault ? 0 : errhint("Use ALTER TABLE ... ALTER COLUMN ... DROP IDENTITY instead.")));
+ /* translator: %s is an SQL ALTER command */
+ newDefault ? 0 : errhint("Use %s instead.",
+ "ALTER TABLE ... ALTER COLUMN ... DROP IDENTITY")));
if (TupleDescAttr(tupdesc, attnum - 1)->attgenerated)
ereport(ERROR,
errmsg("column \"%s\" of relation \"%s\" is a generated column",
colName, RelationGetRelationName(rel)),
newDefault || TupleDescAttr(tupdesc, attnum - 1)->attgenerated != ATTRIBUTE_GENERATED_STORED ? 0 :
- errhint("Use ALTER TABLE ... ALTER COLUMN ... DROP EXPRESSION instead.")));
+ /* translator: %s is an SQL ALTER command */
+ errhint("Use %s instead.",
+ "ALTER TABLE ... ALTER COLUMN ... DROP EXPRESSION")));
/*
* Remove any old default for the column. We use RESTRICT here for
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
errmsg("\"%s\" is a composite type",
NameStr(tuple_class->relname)),
- errhint("Use ALTER TYPE instead.")));
+ /* translator: %s is an SQL ALTER command */
+ errhint("Use %s instead.",
+ "ALTER TYPE")));
break;
case RELKIND_TOASTVALUE:
if (recursing)
ereport(ERROR,
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
errmsg("\"%s\" is a composite type", rv->relname),
- errhint("Use ALTER TYPE instead.")));
+ /* translator: %s is an SQL ALTER command */
+ errhint("Use %s instead.",
+ "ALTER TYPE")));
/*
* Don't allow ALTER TABLE .. SET SCHEMA on relations that can't be moved
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
errmsg("cannot change schema of composite type \"%s\"",
rv->relname),
- errhint("Use ALTER TYPE instead.")));
+ /* translator: %s is an SQL ALTER command */
+ errhint("Use %s instead.",
+ "ALTER TYPE")));
else if (relkind == RELKIND_TOASTVALUE)
ereport(ERROR,
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
errmsg("%s is a table's row type",
format_type_be(typeOid)),
- errhint("Use ALTER TABLE instead.")));
+ /* translator: %s is an SQL ALTER command */
+ errhint("Use %s instead.",
+ "ALTER TABLE")));
/* don't allow direct alteration of array types, either */
if (IsTrueArrayType(typTup))
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
errmsg("%s is a table's row type",
format_type_be(typeOid)),
- errhint("Use ALTER TABLE instead.")));
+ /* translator: %s is an SQL ALTER command */
+ errhint("Use %s instead.",
+ "ALTER TABLE")));
/* don't allow direct alteration of array types, either */
if (IsTrueArrayType(typTup))
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
errmsg("%s is a table's row type",
format_type_be(typeOid)),
- errhint("Use ALTER TABLE instead.")));
+ /* translator: %s is an SQL ALTER command */
+ errhint("Use %s instead.",
+ "ALTER TABLE")));
if (oldNspOid != nspOid)
{