aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/typecmds.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2023-10-20 22:52:15 +0200
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2023-10-20 22:52:15 +0200
commitb62a3fa1cc66ab0d3356c0262b743909d2066504 (patch)
tree89a3fbaea20cf005d93d21e11192b4725f854631 /src/backend/commands/typecmds.c
parentc79ca0485a62b2abefabd538ac896cd64f4e7a01 (diff)
downloadpostgresql-b62a3fa1cc66ab0d3356c0262b743909d2066504.tar.gz
postgresql-b62a3fa1cc66ab0d3356c0262b743909d2066504.zip
Make some error strings more generic
It's undesirable to have SQL commands or configuration options in a translatable error string, so take some of these out.
Diffstat (limited to 'src/backend/commands/typecmds.c')
-rw-r--r--src/backend/commands/typecmds.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/backend/commands/typecmds.c b/src/backend/commands/typecmds.c
index 216482095d2..430ec671e6e 100644
--- a/src/backend/commands/typecmds.c
+++ b/src/backend/commands/typecmds.c
@@ -3633,7 +3633,9 @@ RenameType(RenameStmt *stmt)
(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))
@@ -3714,7 +3716,9 @@ AlterTypeOwner(List *names, Oid newOwnerId, ObjectType objecttype)
(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))
@@ -4005,7 +4009,9 @@ AlterTypeNamespaceInternal(Oid typeOid, Oid nspOid,
(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)
{