aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/tablecmds.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2016-12-21 11:47:13 -0500
committerRobert Haas <rhaas@postgresql.org>2016-12-21 11:47:50 -0500
commitcd510f04137a1436ad6029da4998f5224395a08d (patch)
tree6db1dad4b2be8cd00271969dcaaab881935c7ade /src/backend/commands/tablecmds.c
parent1fc5c4945047e8e8c7aa1644b52dd0187b729181 (diff)
downloadpostgresql-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.c5
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