diff options
author | Robert Haas <rhaas@postgresql.org> | 2016-12-21 11:47:13 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2016-12-21 11:47:50 -0500 |
commit | cd510f04137a1436ad6029da4998f5224395a08d (patch) | |
tree | 6db1dad4b2be8cd00271969dcaaab881935c7ade /src/backend/commands/tablecmds.c | |
parent | 1fc5c4945047e8e8c7aa1644b52dd0187b729181 (diff) | |
download | postgresql-cd510f04137a1436ad6029da4998f5224395a08d.tar.gz postgresql-cd510f04137a1436ad6029da4998f5224395a08d.zip |
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
Diffstat (limited to 'src/backend/commands/tablecmds.c')
-rw-r--r-- | src/backend/commands/tablecmds.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index 1c219b03dd9..115b98313e3 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -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 |