@@ -7996,15 +7996,19 @@ ATExecColumnDefault(Relation rel, const char *colName,
79967996 (errcode(ERRCODE_SYNTAX_ERROR),
79977997 errmsg("column \"%s\" of relation \"%s\" is an identity column",
79987998 colName, RelationGetRelationName(rel)),
7999- newDefault ? 0 : errhint("Use ALTER TABLE ... ALTER COLUMN ... DROP IDENTITY instead.")));
7999+ /* translator: %s is an SQL ALTER command */
8000+ newDefault ? 0 : errhint("Use %s instead.",
8001+ "ALTER TABLE ... ALTER COLUMN ... DROP IDENTITY")));
80008002
80018003 if (TupleDescAttr(tupdesc, attnum - 1)->attgenerated)
80028004 ereport(ERROR,
80038005 (errcode(ERRCODE_SYNTAX_ERROR),
80048006 errmsg("column \"%s\" of relation \"%s\" is a generated column",
80058007 colName, RelationGetRelationName(rel)),
80068008 newDefault || TupleDescAttr(tupdesc, attnum - 1)->attgenerated != ATTRIBUTE_GENERATED_STORED ? 0 :
8007- errhint("Use ALTER TABLE ... ALTER COLUMN ... DROP EXPRESSION instead.")));
8009+ /* translator: %s is an SQL ALTER command */
8010+ errhint("Use %s instead.",
8011+ "ALTER TABLE ... ALTER COLUMN ... DROP EXPRESSION")));
80088012
80098013 /*
80108014 * Remove any old default for the column. We use RESTRICT here for
@@ -14534,7 +14538,9 @@ ATExecChangeOwner(Oid relationOid, Oid newOwnerId, bool recursing, LOCKMODE lock
1453414538 (errcode(ERRCODE_WRONG_OBJECT_TYPE),
1453514539 errmsg("\"%s\" is a composite type",
1453614540 NameStr(tuple_class->relname)),
14537- errhint("Use ALTER TYPE instead.")));
14541+ /* translator: %s is an SQL ALTER command */
14542+ errhint("Use %s instead.",
14543+ "ALTER TYPE")));
1453814544 break;
1453914545 case RELKIND_TOASTVALUE:
1454014546 if (recursing)
@@ -17942,7 +17948,9 @@ RangeVarCallbackForAlterRelation(const RangeVar *rv, Oid relid, Oid oldrelid,
1794217948 ereport(ERROR,
1794317949 (errcode(ERRCODE_WRONG_OBJECT_TYPE),
1794417950 errmsg("\"%s\" is a composite type", rv->relname),
17945- errhint("Use ALTER TYPE instead.")));
17951+ /* translator: %s is an SQL ALTER command */
17952+ errhint("Use %s instead.",
17953+ "ALTER TYPE")));
1794617954
1794717955 /*
1794817956 * Don't allow ALTER TABLE .. SET SCHEMA on relations that can't be moved
@@ -17961,7 +17969,9 @@ RangeVarCallbackForAlterRelation(const RangeVar *rv, Oid relid, Oid oldrelid,
1796117969 (errcode(ERRCODE_WRONG_OBJECT_TYPE),
1796217970 errmsg("cannot change schema of composite type \"%s\"",
1796317971 rv->relname),
17964- errhint("Use ALTER TYPE instead.")));
17972+ /* translator: %s is an SQL ALTER command */
17973+ errhint("Use %s instead.",
17974+ "ALTER TYPE")));
1796517975 else if (relkind == RELKIND_TOASTVALUE)
1796617976 ereport(ERROR,
1796717977 (errcode(ERRCODE_WRONG_OBJECT_TYPE),
0 commit comments