mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +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));
|
||||
|
||||
|
||||
@@ -1230,7 +1230,7 @@ AlterSubscription(ParseState *pstate, AlterSubscriptionStmt *stmt,
|
||||
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",
|
||||
"failover")));
|
||||
|
||||
/*
|
||||
|
||||
@@ -10741,7 +10741,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