mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
Use errmsg_internal for debug messages
An inconsistent set of debug-level messages was not using errmsg_internal(), thus uselessly exposing the messages to translation work. Fix those.
This commit is contained in:
@ -5399,11 +5399,11 @@ ATRewriteTable(AlteredTableInfo *tab, Oid OIDNewHeap, LOCKMODE lockmode)
|
||||
|
||||
if (newrel)
|
||||
ereport(DEBUG1,
|
||||
(errmsg("rewriting table \"%s\"",
|
||||
(errmsg_internal("rewriting table \"%s\"",
|
||||
RelationGetRelationName(oldrel))));
|
||||
else
|
||||
ereport(DEBUG1,
|
||||
(errmsg("verifying table \"%s\"",
|
||||
(errmsg_internal("verifying table \"%s\"",
|
||||
RelationGetRelationName(oldrel))));
|
||||
|
||||
if (newrel)
|
||||
@ -7016,7 +7016,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_internal("existing constraints on column \"%s.%s\" are sufficient to prove that it does not contain nulls",
|
||||
RelationGetRelationName(rel), NameStr(attr->attname))));
|
||||
return true;
|
||||
}
|
||||
@ -10565,7 +10565,7 @@ validateForeignKeyConstraint(char *conname,
|
||||
MemoryContext perTupCxt;
|
||||
|
||||
ereport(DEBUG1,
|
||||
(errmsg("validating foreign key constraint \"%s\"", conname)));
|
||||
(errmsg_internal("validating foreign key constraint \"%s\"", conname)));
|
||||
|
||||
/*
|
||||
* Build a trigger call structure; we'll need it either way.
|
||||
@ -16294,11 +16294,11 @@ QueuePartitionConstraintValidation(List **wqueue, Relation scanrel,
|
||||
{
|
||||
if (!validate_default)
|
||||
ereport(DEBUG1,
|
||||
(errmsg("partition constraint for table \"%s\" is implied by existing constraints",
|
||||
(errmsg_internal("partition constraint for table \"%s\" is implied by existing constraints",
|
||||
RelationGetRelationName(scanrel))));
|
||||
else
|
||||
ereport(DEBUG1,
|
||||
(errmsg("updated partition constraint for default partition \"%s\" is implied by existing constraints",
|
||||
(errmsg_internal("updated partition constraint for default partition \"%s\" is implied by existing constraints",
|
||||
RelationGetRelationName(scanrel))));
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user