aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2016-09-15 17:24:54 -0400
committerRobert Haas <rhaas@postgresql.org>2016-09-15 17:24:54 -0400
commit5225c66336a1e4b46925e9f169086fc70f49736f (patch)
tree2d59b13a6ac635fb06b386455f12a48a7f98a80f /src
parent5c6df67e0c961f68e73e7c1e6312211ed59da00a (diff)
downloadpostgresql-5225c66336a1e4b46925e9f169086fc70f49736f.tar.gz
postgresql-5225c66336a1e4b46925e9f169086fc70f49736f.zip
Clarify policy on marking inherited constraints as valid.
Amit Langote and Robert Haas
Diffstat (limited to 'src')
-rw-r--r--src/backend/commands/tablecmds.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c
index 86e98148c16..d31276284ce 100644
--- a/src/backend/commands/tablecmds.c
+++ b/src/backend/commands/tablecmds.c
@@ -6908,7 +6908,8 @@ ATExecValidateConstraint(Relation rel, char *constrName, bool recurse,
/*
* If we are told not to recurse, there had better not be any
- * child tables; else the addition would put them out of step.
+ * child tables, because we can't mark the constraint on the
+ * parent valid unless it is valid for all child tables.
*/
if (!recurse)
ereport(ERROR,