Disallow ALTER TABLE ADD CONSTRAINT USING INDEX on a partition root
ADD CONSTRAINT USING INDEX is a new feature which didn't existing for 4 or 5 branches. This is taken from upstream commit eb7ed3f3. With partition tables, the changes are not propagated to the leaf partitions if the operation is done on the root table, thus disallowed currently. This introduces rel_is_interior_partition to determine if a relation is an interior node in a partition hierarchy. Co-authored-by: NSoumyadeep Chakraborty <sochakraborty@pivotal.io>
Showing
想要评论请 注册 或 登录