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

Clarify policy on marking inherited constraints as valid.

Amit Langote and Robert Haas
This commit is contained in:
Robert Haas
2016-09-15 17:24:54 -04:00
parent 5c6df67e0c
commit 5225c66336
2 changed files with 11 additions and 6 deletions

View File

@ -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,