elog(ERROR, "cannot convert whole-row table reference");
/* Add a pre-cooked default expression. */
- StoreAttrDefault(newRel, num, def, true);
+ StoreAttrDefault(newRel, num, def, false);
/*
* Stored generated column expressions in parent_rel might
/* Install all CHECK constraints. */
cookedConstraints = AddRelationNewConstraints(newRel, NIL, constraints,
- false, true, true, NULL);
+ false, true, false, NULL);
/* Make the additional catalog changes visible. */
CommandCounterIncrement();
* We already set pg_attribute.attnotnull in createPartitionTable. No
* need call set_attnotnull again.
*/
- AddRelationNewConstraints(newRel, NIL, nnconstraints, false, true, true, NULL);
+ AddRelationNewConstraints(newRel, NIL, nnconstraints, false, true, false, NULL);
}
}
(Datum) 0,
true,
allowSystemTableMods,
- true,
+ false, /* is_internal */
InvalidOid,
NULL);
object.classId = RelationRelationId;
object.objectSubId = 0;
- performDeletionCheck(&object, DROP_RESTRICT, PERFORM_DELETION_INTERNAL);
+ performDeletionCheck(&object, DROP_RESTRICT, 0);
}
/*
object.objectId = splitRelOid;
object.classId = RelationRelationId;
object.objectSubId = 0;
- performDeletionCheck(&object, DROP_RESTRICT, PERFORM_DELETION_INTERNAL);
+ performDeletionCheck(&object, DROP_RESTRICT, 0);
/*
* If a new partition has the same name as the split partition, then we