Error out when changing datatype of column with constraint. (#10712)
Raise a meaningful error message for this case. GPDB doesn't support alter type on primary key and unique constraint column. Because it requires to drop - recreate logic. The drop currently only performs on master which lead error when recreating index (since recreate index will dispatch to segments and there still an old constraint index exists). This fixes the issue https://github.com/greenplum-db/gpdb/issues/10561. Reviewed-by: NHubert Zhang <hzhang@pivotal.io> (cherry picked from commit 32446a32)
Showing
想要评论请 注册 或 登录