summaryrefslogtreecommitdiff
path: root/src/backend/commands
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2023-07-10 10:46:54 +0200
committerPeter Eisentraut <peter@eisentraut.org>2023-07-10 10:46:54 +0200
commit2631ebab7b18bdc079fd86107c47d6104a6b3c6e (patch)
tree43b97a5207af4b374a802333b3fbfc5c8575f90d /src/backend/commands
parent55c95f24cd7c91fc80d7c0d2c842c0b633f9bdc9 (diff)
Message wording improvements
Diffstat (limited to 'src/backend/commands')
-rw-r--r--src/backend/commands/copyfromparse.c8
-rw-r--r--src/backend/commands/tablecmds.c6
2 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/commands/copyfromparse.c b/src/backend/commands/copyfromparse.c
index 3853902a16e..d2e8c74402b 100644
--- a/src/backend/commands/copyfromparse.c
+++ b/src/backend/commands/copyfromparse.c
@@ -1703,8 +1703,8 @@ CopyReadAttributesText(CopyFromState cstate)
ereport(ERROR,
(errcode(ERRCODE_BAD_COPY_FILE_FORMAT),
- errmsg("unexpected DEFAULT in COPY data"),
- errdetail("Column \"%s\" has no DEFAULT value.",
+ errmsg("unexpected default marker in COPY data"),
+ errdetail("Column \"%s\" has no default value.",
NameStr(att->attname))));
}
}
@@ -1918,8 +1918,8 @@ endfield:
ereport(ERROR,
(errcode(ERRCODE_BAD_COPY_FILE_FORMAT),
- errmsg("unexpected DEFAULT in COPY data"),
- errdetail("Column \"%s\" has no DEFAULT value.",
+ errmsg("unexpected default marker in COPY data"),
+ errdetail("Column \"%s\" has no default value.",
NameStr(att->attname))));
}
}
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c
index 313e0584826..b2acf03c7c7 100644
--- a/src/backend/commands/tablecmds.c
+++ b/src/backend/commands/tablecmds.c
@@ -10911,7 +10911,7 @@ ATExecAlterConstraint(Relation rel, AlterTableCmd *cmd, bool recurse,
ancestorname && ancestortable ?
errdetail("Constraint \"%s\" is derived from constraint \"%s\" of relation \"%s\".",
cmdcon->conname, ancestorname, ancestortable) : 0,
- errhint("You may alter the constraint it derives from, instead.")));
+ errhint("You may alter the constraint it derives from instead.")));
}
/*
@@ -13860,7 +13860,7 @@ ATExecChangeOwner(Oid relationOid, Oid newOwnerId, bool recursing, LOCKMODE lock
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
errmsg("cannot change owner of index \"%s\"",
NameStr(tuple_class->relname)),
- errhint("Change the ownership of the index's table, instead.")));
+ errhint("Change the ownership of the index's table instead.")));
/* quick hack to exit via the no-op path */
newOwnerId = tuple_class->relowner;
}
@@ -13872,7 +13872,7 @@ ATExecChangeOwner(Oid relationOid, Oid newOwnerId, bool recursing, LOCKMODE lock
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
errmsg("cannot change owner of index \"%s\"",
NameStr(tuple_class->relname)),
- errhint("Change the ownership of the index's table, instead.")));
+ errhint("Change the ownership of the index's table instead.")));
break;
case RELKIND_SEQUENCE:
if (!recursing &&