mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Message fixes and style improvements
This commit is contained in:
@ -1212,14 +1212,14 @@ assignProcTypes(OpFamilyMember *member, Oid amoid, Oid typeoid,
|
||||
(OidIsValid(member->righttype) && member->righttype != typeoid))
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
|
||||
errmsg("associated data types for opclass options parsing functions must match opclass input type")));
|
||||
errmsg("associated data types for operator class options parsing functions must match opclass input type")));
|
||||
}
|
||||
else
|
||||
{
|
||||
if (member->lefttype != member->righttype)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
|
||||
errmsg("left and right associated data types for opclass options parsing functions must match")));
|
||||
errmsg("left and right associated data types for operator class options parsing functions must match")));
|
||||
}
|
||||
|
||||
if (procform->prorettype != VOIDOID ||
|
||||
@ -1227,8 +1227,8 @@ assignProcTypes(OpFamilyMember *member, Oid amoid, Oid typeoid,
|
||||
procform->proargtypes.values[0] != INTERNALOID)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
|
||||
errmsg("invalid opclass options parsing function"),
|
||||
errhint("Valid signature of opclass options parsing function is '%s'.",
|
||||
errmsg("invalid operator class options parsing function"),
|
||||
errhint("Valid signature of operator class options parsing function is %s.",
|
||||
"(internal) RETURNS void")));
|
||||
}
|
||||
|
||||
|
@ -6855,7 +6855,7 @@ NotNullImpliedByRelConstraints(Relation rel, Form_pg_attribute attr)
|
||||
if (ConstraintImpliedByRelConstraint(rel, list_make1(nnulltest), NIL))
|
||||
{
|
||||
ereport(DEBUG1,
|
||||
(errmsg("existing constraints on column \"%s\".\"%s\" are sufficient to prove that it does not contain nulls",
|
||||
(errmsg("existing constraints on column \"%s.%s\" are sufficient to prove that it does not contain nulls",
|
||||
RelationGetRelationName(rel), NameStr(attr->attname))));
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user