mirror of
https://github.com/postgres/postgres.git
synced 2025-07-18 17:42:25 +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:
@ -1085,7 +1085,7 @@ DefineIndex(Oid relationId,
|
||||
}
|
||||
|
||||
ereport(DEBUG1,
|
||||
(errmsg("%s %s will create implicit index \"%s\" for table \"%s\"",
|
||||
(errmsg_internal("%s %s will create implicit index \"%s\" for table \"%s\"",
|
||||
is_alter_table ? "ALTER TABLE / ADD" : "CREATE TABLE /",
|
||||
constraint_type,
|
||||
indexRelationName, RelationGetRelationName(rel))));
|
||||
|
@ -647,7 +647,7 @@ AlterSubscription_refresh(Subscription *sub, bool copy_data)
|
||||
copy_data ? SUBREL_STATE_INIT : SUBREL_STATE_READY,
|
||||
InvalidXLogRecPtr);
|
||||
ereport(DEBUG1,
|
||||
(errmsg("table \"%s.%s\" added to subscription \"%s\"",
|
||||
(errmsg_internal("table \"%s.%s\" added to subscription \"%s\"",
|
||||
rv->schemaname, rv->relname, sub->name)));
|
||||
}
|
||||
}
|
||||
@ -721,7 +721,7 @@ AlterSubscription_refresh(Subscription *sub, bool copy_data)
|
||||
}
|
||||
|
||||
ereport(DEBUG1,
|
||||
(errmsg("table \"%s.%s\" removed from subscription \"%s\"",
|
||||
(errmsg_internal("table \"%s.%s\" removed from subscription \"%s\"",
|
||||
get_namespace_name(get_rel_namespace(relid)),
|
||||
get_rel_name(relid),
|
||||
sub->name)));
|
||||
|
@ -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