mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +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:
@@ -3081,14 +3081,12 @@ index_build(Relation heapRelation,
|
||||
|
||||
if (indexInfo->ii_ParallelWorkers == 0)
|
||||
ereport(DEBUG1,
|
||||
(errmsg("building index \"%s\" on table \"%s\" serially",
|
||||
(errmsg_internal("building index \"%s\" on table \"%s\" serially",
|
||||
RelationGetRelationName(indexRelation),
|
||||
RelationGetRelationName(heapRelation))));
|
||||
else
|
||||
ereport(DEBUG1,
|
||||
(errmsg_plural("building index \"%s\" on table \"%s\" with request for %d parallel worker",
|
||||
"building index \"%s\" on table \"%s\" with request for %d parallel workers",
|
||||
indexInfo->ii_ParallelWorkers,
|
||||
(errmsg_internal("building index \"%s\" on table \"%s\" with request for %d parallel workers",
|
||||
RelationGetRelationName(indexRelation),
|
||||
RelationGetRelationName(heapRelation),
|
||||
indexInfo->ii_ParallelWorkers)));
|
||||
|
||||
Reference in New Issue
Block a user