mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
Message style improvements
This commit is contained in:
@@ -987,7 +987,7 @@ NextCopyFrom(CopyFromState cstate, ExprContext *econtext,
|
||||
|
||||
attval = CopyLimitPrintoutLength(cstate->cur_attval);
|
||||
ereport(NOTICE,
|
||||
errmsg("skipping row due to data type incompatibility at line %llu for column %s: \"%s\"",
|
||||
errmsg("skipping row due to data type incompatibility at line %llu for column \"%s\": \"%s\"",
|
||||
(unsigned long long) cstate->cur_lineno,
|
||||
cstate->cur_attname,
|
||||
attval));
|
||||
@@ -995,7 +995,7 @@ NextCopyFrom(CopyFromState cstate, ExprContext *econtext,
|
||||
}
|
||||
else
|
||||
ereport(NOTICE,
|
||||
errmsg("skipping row due to data type incompatibility at line %llu for column %s: null input",
|
||||
errmsg("skipping row due to data type incompatibility at line %llu for column \"%s\": null input",
|
||||
(unsigned long long) cstate->cur_lineno,
|
||||
cstate->cur_attname));
|
||||
|
||||
|
||||
@@ -1098,7 +1098,7 @@ CheckAlterSubOption(Subscription *sub, const char *option,
|
||||
if (sub->enabled)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
|
||||
errmsg("cannot set %s for enabled subscription",
|
||||
errmsg("cannot set option \"%s\" for enabled subscription",
|
||||
option)));
|
||||
|
||||
if (slot_needs_update)
|
||||
@@ -1112,7 +1112,7 @@ CheckAlterSubOption(Subscription *sub, const char *option,
|
||||
if (!sub->slotname)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
|
||||
errmsg("cannot set %s for a subscription that does not have a slot name",
|
||||
errmsg("cannot set option \"%s\" for a subscription that does not have a slot name",
|
||||
option)));
|
||||
|
||||
/* The changed option of the slot can't be rolled back. */
|
||||
|
||||
@@ -10713,7 +10713,7 @@ CloneFkReferencing(List **wqueue, Relation parentRel, Relation partRel)
|
||||
if (fk->confrelid == RelationGetRelid(partRel))
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
||||
errmsg("can't attach table \"%s\" as a partition which is referenced by foreign key \"%s\"",
|
||||
errmsg("cannot attach table \"%s\" as a partition because it is referenced by foreign key \"%s\"",
|
||||
RelationGetRelationName(partRel),
|
||||
get_constraint_name(fk->conoid))));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user