mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
Synchronize error messages.
Commits6476b26115and14f67a8ee2didn't use quite the same error message for what is basically the same situation. Amit Langote, pared back a bit by me. Discussion: http://postgr.es/m/54dc76d0-3b5b-ba5a-27dc-fb31a3975b61@lab.ntt.co.jp
This commit is contained in:
@@ -988,7 +988,7 @@ check_default_allows_bound(Relation parent, Relation default_rel,
|
||||
if (PartConstraintImpliedByRelConstraint(default_rel, def_part_constraints))
|
||||
{
|
||||
ereport(INFO,
|
||||
(errmsg("partition constraint for table \"%s\" is implied by existing constraints",
|
||||
(errmsg("updated partition constraint for default partition \"%s\" is implied by existing constraints",
|
||||
RelationGetRelationName(default_rel))));
|
||||
return;
|
||||
}
|
||||
@@ -1033,7 +1033,7 @@ check_default_allows_bound(Relation parent, Relation default_rel,
|
||||
def_part_constraints))
|
||||
{
|
||||
ereport(INFO,
|
||||
(errmsg("partition constraint for table \"%s\" is implied by existing constraints",
|
||||
(errmsg("updated partition constraint for default partition \"%s\" is implied by existing constraints",
|
||||
RelationGetRelationName(part_rel))));
|
||||
|
||||
heap_close(part_rel, NoLock);
|
||||
|
||||
Reference in New Issue
Block a user