1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-16 06:01:02 +03:00

Convert elog() to ereport() and do some wordsmithing.

It's not entirely clear that we should log a message here at all, but
it's certainly wrong to use elog() for a message that should clearly
be translatable.

Amit Langote
This commit is contained in:
Robert Haas
2016-12-21 11:47:13 -05:00
parent 1fc5c49450
commit cd510f0413
2 changed files with 7 additions and 4 deletions

View File

@ -13297,8 +13297,11 @@ ATExecAttachPartition(List **wqueue, Relation rel, PartitionCmd *cmd)
}
}
/* It's safe to skip the validation scan after all */
if (skip_validate)
elog(NOTICE, "skipping scan to validate partition constraint");
ereport(INFO,
(errmsg("partition constraint for table \"%s\" is implied by existing constraints",
RelationGetRelationName(attachRel))));
/*
* Set up to have the table to be scanned to validate the partition