target table. The table to be attached must have all the same columns
as the target table and no more; moreover, the column types must also
match. Also, it must have all the NOT NULL and
- CHECK constraints of the target table. Currently
+ CHECK constraints of the target table, not marked
+ NO INHERIT. Currently
FOREIGN KEY constraints are not considered.
UNIQUE and PRIMARY KEY constraints
from the parent table will be created in the partition, if they don't
already exist.
- If any of the CHECK constraints of the table being
- attached are marked NO INHERIT, the command will fail;
- such constraints must be recreated without the
- NO INHERIT clause.