diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2021-02-17 11:24:46 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2021-02-17 11:33:25 +0100 |
commit | 0e392fcc0d5ab73c81d9284e7dda5acbb7ad6d21 (patch) | |
tree | be7ce5174e2fe8f180c5853834066edc10666cbb /src/backend/commands/tablecmds.c | |
parent | e6b8e83b9f012cfbb3a2f96a7d2e74aebd299d4e (diff) | |
download | postgresql-0e392fcc0d5ab73c81d9284e7dda5acbb7ad6d21.tar.gz postgresql-0e392fcc0d5ab73c81d9284e7dda5acbb7ad6d21.zip |
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.
Diffstat (limited to 'src/backend/commands/tablecmds.c')
-rw-r--r-- | src/backend/commands/tablecmds.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index 420991e3153..b2457a69245 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -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; } |